Discussions
help with a suitelet
I am new at scripting. I am using this suitelet from NS answers . When the users run this script it just ends and leaves at a blank page. How can get this to go back to the home page after running this suitelet. I do know it would be nlapiSetRedirectURL('SUITELET', 'CARD_-29'); but I am having trouble placing this in my script below. Any help would be great.
/**
* Module Description
*
*/
/**
* @param {nlobjRequest} request Request object
* @param {nlobjResponse} response Response object
* @returns {Void} Any output is written via response object
*/
function formSuitelet(request, response){
if ( request.getMethod() == 'GET' )
{
var form = nlapiCreateForm('Bulk Close RMA');