Setting field Help using SuiteScript in a Suitelet page

Create a form.

let form = serverWidget.createForm({

      title: ‘Sample Suitelet Page’

      });

Add a field.

let newField = form.addField({

        id: ‘custpage_chechbox1’,

         label: Check’,

         type: serverWidget.FieldType.CHECKBOX,

});

Script to add field help:

newField.setHelpText({

        help: “Provide the information you want to display in the field help, and it will be displayed when the user hover the field.”

      })

Screenshot of Example:

Script:-

Output:-

Leave a comment

Your email address will not be published. Required fields are marked *