Eric B

03/07/2018, 4:05 PM
@suitecloudfanatic I just posted code that might work for you. My Suitelet displays an initial page with 1 submit button. In the Suitelet I check for the value of the button click which is accessible via request.parameters.submitter. The value corresponds to the label you give the submit button. From there you can branch the logic to whichever function needs to run. After the initial click on the submit button I display a different version of the form with a different submit button and another button which triggers a client-side script. In your case you can add parameters to the URL that location.href points to in the ClientScript which will redirect it back to your Suitelet and then you can grab the querystring parameters using the construct request.parameters.rpt where rpt is part of the url querystring.


03/07/2018, 4:16 PM
Sweet! Thanks @Eric B!