Categories

Naming convention for Suitelet fields custpage

 In this post we will know how to name fields in suite let. When i am talking about field then it is ID of the field.

e.g 

                        let taskName = form.addField({
				id:'custpage_taskname',
				type: ui.FieldType.TEXT,
				label:'Task Name'
			});

in above code id is custpage_taskname

Follow the below guidelines to name id

  1. Always prefix the field id with custpage_
  2. Do not use any capital letter words in ID 
custpage_name  -> This is correct ID
custpage_Name -> This is incorrect ID
__Name -> This is incorrect ID as it is not prefixed with custpage
adbanner