if i wanted to check if a form is filled out corre...
# suitescript
s
if i wanted to check if a form is filled out correctly i should use client script ?
a
You should use a server-side script. The type depends on when you want to check form values (before save, after save, line insertion, etc.)
s
user event script before submit
b
a user event script before submit should only be used for validation if you want it to work outside the ui
its not popular for doing validation since your only choice for rejecting records failing validation is to throw an error
☝️ 1
💯 1
which results in the loss of the changes submitted
s
It also isn't good a good way to send a nice message to the user.
s
ok thanks this is very helpful in client script what is similar to before submit
s