Skip to content

elements.DisplayType

Overview

"Server Script" controls the display state of buttons added in "Navigation Menu", "Command Buttons", and "Process".

Limitations

  1. Can be applied to the "Navigation Menu" at the top of the screen, the "Command Buttons" at the bottom of the screen, and buttons added in "Process".
  2. Cannot be applied to the back button.
  3. Cannot set "2: Disabled" to the navigation menu.
  4. This is valid when the "Condition" in the server script is "Before Screen Display".

Syntax

elements.DisplayType(id, displayType);

Parameters

Parameter Type Required Overview
id string Yes HTML ID attribute
displayType int Yes 0: Standard/1: None/2: Disabled/3: Hidden

Return Value

There is no return value.

Usage Example 1

In the following example, by specifying displayType as 1, the HTML for the help menu will not be output.

JavaScript
elements.DisplayType('HelpMenuContainer',1);

Usage Example 2

In the following example, the Delete button is disabled by specifying displayType as 2.

JavaScript
elements.DisplayType('DeleteCommand',2);

Usage Example 3

In the following example, by specifying displayType as 3, the button (ID: 1) added in Process will be hidden.

JavaScript
elements.DisplayType('Process_1',3);