I wrote a suitelet to create a form and submit the...
# general
d
I wrote a suitelet to create a form and submit the form will add a sublist, however, when I submitted the form, the url of the page is redirected to ....app.netsuite.com/app/site/hosting/scriptlet.nl , how to keep the url as it was loaded initally (....app.netsuite.com/app/site/hosting/scriptlet.nl?script=2537&deploy=1). Here is my script. Thank you in advance.
b
d
Thank you @battk, I also tried the redirect but when I submit the form, a sublist will be added to the page from the 'formProcess' function, and the redirect removes that sublist.
b
you have options to add parameters in N/redirect, which you should use for your parameters
d
Thank you @battk , I was able to add parameters hoơever, I don’t want the url to show the parameter. Is it possible to only update the form without submitting so that the script URL will not redirect?
b
client script can be used to update the sublist depending on the type of sublist, though tends to be slow
d
I see, thank you so much for your comments.