Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Get Session when a server side script error is thrown
I am trying to maintain some key data that gets lost if an error is thrown prior to submit (beforeSubmit).
It seems that when a user enters data on a form and submits it, if an error gets thrown prior to writing to the database and the error is displayed (with the 'back' button), when the user clicks back, the form loads but the data in the fields is gone.
So I tried setting a session variable on beforeSubmit with a special keyname and then reading on beforeLoad thinking that this would allow me to pass in data to the fields if the keyname matched (I'd know there was an error thrown) and I would set the fields with the stored data.