We have a custom UE script with beforeLoad entry a...
# suitescript
l
We have a custom UE script with beforeLoad entry and N/record and N/serverWidget modules that is supposed to make a custom field optional if the transaction is coming from Expensify. It works well in the UI except when the JE transactions are actually pushed over to NS (context is SOAP). It looks like beforeLoad does not work. Should I be using beforeSubmit? If so, form.getSublist does not seem to support beforeSubmit. Any alternative to that?
b
form specific to the integration
l
I'm sorry, do you mean just make it optional in the form itself? It is a transaction line field, so I can't do that in the form itself.
b
that sounds unusual, what does the field look like on the custom transaction form page?
l
message has been deleted
That sole checkbox is the Show column. No separate checkbox for Mandatory column.
b
dont show the column on your mandatory form
l
But we still need it to be there. It's just not mandatory to be filled out. Sometimes it could have a value, sometimes it's just blank
b
then you probably have to deal with the annoyance of switching the setup of the field around, make it normally not mandatory and make it mandatory via script