Working with Custom Buttons

Jira code : CLTG-177

Description

You can add custom buttons to forms to initiate client SuiteScript. For example, you could add Create Invoice button on a customer form that performs a specific function when the button is clicked.

Important: 

Custom buttons appear only when a record is in Edit mode. To make a button appear in View mode, use a User Event Script or Workflow.

Solution

To add a custom button to associate with client SuiteScript:

  1. On the Custom Code subtab of the form, in the Script File field, add the client SuiteScript.
  2. In the Label field, enter the UI label for the button. You can enter up to 99 characters.
  3. In the Function field, enter the name of the function to perform when the button is clicked. The function can exist in your client SuiteScript file or any library file you have attached to the Custom Code subtab.
  4. In the Display As column, select Button to display the button as an inline button. Select Menu to have the button to appear as an action in the More Actions menu.
  5. Click Save.

Leave a comment

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