Team, I have a beforeLoad function to create one s...
# suitescript
s
Team, I have a beforeLoad function to create one subtab and one custom field on Invoice. I am setting default value to this custom field. In beforeSubmit, when I try to access the value of this field, it returns empty string. cForm.addTab({ id: 'custpage_mytab', label: 'MyTab' }); var TrnStatus = cForm.addField({ id: 'custpage_trnstatus', label: 'Transaction Status', type: ui.FieldType.TEXT, container: 'custpage_mytab' }); TrnStatus.updateDisplayType({ displayType: ui.FieldDisplayType.INLINE }); Question: In BeforeSubmit, is it possible to access value of custom field created in BeforeLoad ?
c
The user can't edit it, so i'd probably just use the logic you used to populate it in the first place
s
Thanks @CD