RE: Basic Suitelet


I would like to make a basic Suitelet that has a search box on a page where the user can enter a  a value and press enter and search against a custom record, then open the record in a new tab or window.

Should this be possible? What would be the best way to achieve it?



themelon007 Rookie Asked on March 31, 2021 in SuiteScript.
Add Comment
4 Answers

Something close to this but filled out should do the trick.

    exports.onRequest = function onRequest(context) {
        if (context.request.method == 'GET') {
            //create form with text field
            //add a submit button to do the search
            //display the form
        } else { //POST
            //read the value from the field in the context object
            //perform the search
            //display results, redirect to record, etc

Intermediate Answered on March 31, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.