David Na
09/20/2023, 9:12 AMconst beforeLoad = (scriptContext) => {
if (scriptContext.type === scriptContext.UserEventType.VIEW || scriptContext.type === scriptContext.UserEventType.EDIT) {
let form = scriptContext.form;
let componentsSublist = form.getSublist('member');
log.debug('componentsSublist', JSON.stringify(componentsSublist));
componentsSublist.addField({
id: 'custpage_test',
type: serverWidget.FieldType.INTEGER,
label: 'Test'
});
}
}
But I can see the field only on EDIT, and also when I set value to that field its not save it and the field disappear after saving the record (VIEW)
Any solution?CD
09/20/2023, 9:43 AMDavid Na
09/21/2023, 7:11 AMDavid B
09/21/2023, 10:20 PMDavid B
09/21/2023, 10:27 PM