Does anyone know...Regarding Client Side SuiteScri...
# suitescript
m
Does anyone know...Regarding Client Side SuiteScripts, saveRecord function: What is the normal behavior when returning false? Does it stop the submission totally(no reloads etc) or does it reload but discard any changes? The issue is that I am validating to make sure some items are checked during the saveRecord function and returning false if the boxes are not checked. But for some reason it is still submitting and going through the User event script afterSubmit event. I am verifying that false is being returned in the Client Side script.
e
Stops the save entirely and does not reload the page.
At least, that's my expectation and understanding
e
Returning false should stop it. Share some code and we can try to help.
m
Oh my. I had the saveRecord function defined as async causing it to still submit. Thank you for the reply!
2