razer456
07/23/2021, 5:46 PM{"type":"error.SuiteScriptError","name":"SSS_INVALID_FORM_ELEMENT_NAME","message":"You have entered an invalid form element name. It must be prefixed with \"custpage\", unique, lowercase, and cannot contain any non-alphanumeric characters (except for the underscore character) in order to be added to the form or sublist.","stack":["addField(N/serverWidget)","onRequest(/SuiteScripts/ASSISTANT.js:14)"]
but i have included at custpage at 14, it is a dummy scriptbattk
07/23/2021, 5:51 PMbattk
07/23/2021, 5:51 PMbattk
07/23/2021, 5:52 PMrazer456
07/23/2021, 5:56 PM{"type":"error.SuiteScriptError","name":"SSS_INVALID_FORM_ELEMENT_NAME","message":"You have entered an invalid form element name. It must be prefixed with \"custpage\", unique, lowercase, and cannot contain any non-alphanumeric characters (except for the underscore character) in order to be added to the form or sublist.","stack":["addField(N/serverWidget)","onRequest(/SuiteScripts/ASSISTANT.js:28)"],"cause":{"type":"internal error","code":"SSS_INVALID_FORM_ELEMENT_NAME","details":"You have entered an invalid form element name. It must be prefixed with \"custpage\", unique, lowercase, and cannot contain any non-alphanumeric characters (except for the underscore character) in order to be added to the form or sublist.","userEvent":null,"stackTrace":["addField(N/serverWidget)","onRequest(/SuiteScripts/ASSISTANT.js:28)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
battk
07/23/2021, 6:01 PMrazer456
07/23/2021, 6:04 PMvar assistant = serverWidget.createAssistant({
title: 'Simple Assistant',
});
14th line -->> assistant.addField({
id: 'custpage_idnameaddField',
type: serverWidget.FieldType.TEXT,
label: 'Sample label addField1',
});
assistant.addField({
id: 'custpage_idnameaddFieldd',
type: serverWidget.FieldType.TEXT,
label: 'Sample label addField2',
});
battk
07/23/2021, 6:04 PMbattk
07/23/2021, 6:05 PMrazer456
07/23/2021, 6:06 PMbattk
07/23/2021, 6:06 PMbattk
07/23/2021, 6:06 PMrazer456
07/23/2021, 6:08 PMbattk
07/23/2021, 6:08 PMbattk
07/23/2021, 6:09 PMrazer456
07/23/2021, 6:10 PMrazer456
07/23/2021, 6:11 PMrazer456
07/23/2021, 6:12 PM