Validate Scripts
- Last UpdatedJun 25, 2024
- 1 minute read
Validate a script to ensure the code is valid.
To validate a script
-
In the Enterprise Console, click the Menu button, and then click Forms. The Forms page appears.
-
Right-click on a form, and then click Design Form (or click on a form, and then click Design). The Forms Designer page appears.
-
Point to the control, and then click the Properties button. The Properties dialog box appears.
-
Click the Scripts tab, and then click the Script Editor button for the required property. The Script Editor page appears.
-
Code the script, and then click Check Syntax. The code is validated.
-
Correct the invalid code and then click Save & Close. The script is saved and the Script Editor page is closed.
Properties and Methods
The following properties and methods are validated:
|
Properties |
Methods |
|---|---|
|
|
Validation
-
Code is validated only when the Check Syntax button is clicked and not when the Save or Save & Close button is clicked.
-
Control specific syntax is validated only if the script starts with the control keyword.
-
User referenced JavaScript files are not validated.
-
Run-time scenarios are not validated.
var b = "T1";
control.findById(b).value;
var a = control;
// This line of code is not validated.
a.findById("T1").value