RE: Basic Suitelet
Hi,
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?
Thanks,
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}}