DisplayButton

Shows or hides the standard buttons.

Parameters
  • (Button_Default). Specifies whether to show or hide the Change and Save buttons. Can take one of the following values:
    • true. Shows the buttons.
    • false. Hides the buttons.
  • (Button_Delete). Specifies whether to show or hide the Delete button. Can take one of the following values:
    • true. Shows the button.
    • false. Hides the button.
  • (Button_Continue). Specifies whether to show or hide the Continue button. Can take one of the following values:
    • true. Shows the button.
    • false. Hides the button.

The standard buttons are defined in the SageCrmNoLang.js include file.

Examples

Container = CRM.GetBlock("container");
Container.DisplayButton(Button_Delete) = true;
Container.DisplayButton(Button_Continue) = true;
Container.DisplayButton(Button_Default) = true;
CRM.AddContent(Container.Execute());
Response.Write(CRM.GetPage());

Shows all standard buttons (Change, Save, Delete, and Continue).