Learning the validate field function in CS Alert...
# suitescript
d
Learning the validate field function in CS Alert is popping up infinite times , what could be the issue ?
d
before end of your function write
return true ;
f
We tried that.. It didn't work.
b
you may want to paste your updated code here. Most common cause of misbehaved validate functions (especially infinite ones) is not returning true or false
j
After your alerts you should return false to reject the field change Additionally if the field is niether tranid or duedate you must return true to let changes to those fields go through. As far as netsuite sees it, if you get to the end of hte function and you don't return anything, it is equivalent to returning false