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 ?