<@UHLNQ6UP4> i don’t think there’s a (non-DOM mani...
# suitescript
m
@John Rosa i don’t think there’s a (non-DOM manipulation) way to set the ‘mandatory’ flag on a field in a client script. you could do it in
beforeLoad
on a client user event script. but you can use
saveRecord
in a client event to check a field’s value and prevent the ‘save’ from happening.
j
I could use a UserEvent script, but I need to pass a value form the client script (The value is collected from the url) to the user event script
m
but the value doesn’t go in the field you’d like to make mandatory?
j
No, ideally I'd like to use the presence of the value to make fields mandatory or not
b
user event beforeLoad has access to the url via scriptContext.request
j
REally?
m
yup
j
That's good news, and easier than anything else
Just no netsuite documentation