i have a beforeSubmit and three fields. based on a...
# suitescript
v
i have a beforeSubmit and three fields. based on a value on the field, i need to hide one of the three fields. how could be this done?
n
You don't, beforeSubmit is too late the record is already loaded in the browser.
If it needs to be realtime, on screen, as the user changes values you need client script.
v
can we do it on saveRecord function in Clientscript?
n
Probably best done on beforeLoad
e
It has to be done using a client script to make it more dynamic and responsive to the values of certain fields. Set the display to none instead of disabling the field.
v
what do you mean by setting the display to none? is it NONE instead of HIDDEN
,
?