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
battk
05/08/2023, 1:03 PM
form specific to the integration
l
Luis
05/08/2023, 9:26 PM
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
battk
05/08/2023, 9:43 PM
that sounds unusual, what does the field look like on the custom transaction form page?
l
Luis
05/09/2023, 7:40 AM
message has been deleted
Luis
05/09/2023, 7:41 AM
That sole checkbox is the Show column. No separate checkbox for Mandatory column.
b
battk
05/09/2023, 5:52 PM
dont show the column on your mandatory form
l
Luis
05/10/2023, 1:35 AM
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
battk
05/10/2023, 1:43 AM
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