Setting Script Parameter Preferences Example

In this example, the Suitelet script includes a parameter called Check Box Required (with the internal ID custscript_checkboxtest2 ), which is set to the Company preference.

The Script record page Parameters tab with the Preference parameter highlighted.

By going to Setup > Company > General Preferences on the Custom Preferences subtab, administrators can set the default value of this parameter for the entire company. In this example, the value of the Check Box Required script parameter is set to T (True, or box checked).

The Custom Preferences tab with Check Box Required checked.

When the Suitelet that contains this box is deployed, Check Box Required is checked.

A Simple Form page with the Check Box Required field highlighted.

If the Check Box Required parameter had been set to F (False, or box not checked), the box would have been cleared on the form when the Suitelet was deployed.

Note:

To create a script parameter, see Creating Script Parameters. For information about accessing script parameter values, see Referencing Script Parameters.

Related Topics

General Notices