Properties of Script Formatter window
A script formatter is used to perform special formatting for an input field that is based on script programming.
If this validation method is in a sequence of validation methods, it is not fired if the previous validation method fails.
- Options
-
This group has the following setting:
- Field data type
-
Select a value from the list to generate sample script code that corresponds to the selected field data type. You may Copy the sample code to the script editor to add it to your script.
A field can have one of three data types.
-
Text. (Default: Selected)
Contains textual data.
-
Double / Amount.
Contains numeric data.
-
Date.
Contains data related to dates.
-
- Script Sample
-
This group contains a script function that you can copy to the script editor and modify to suit your formatting needs.
You can select all text with the Select button, and copy the contents to the clipboard using the Copy button.
- Testing
-
To test the settings, enter some sample input text and click Format
. The sample text is formatted per the settings and displayed in the output field. If the sample cannot be formatted per the settings, a warning or error message is displayed.
The following buttons are available at the bottom of this window:
Button |
Description |
---|---|
OK |
Closes the window and saves your changes. |
Cancel |
Closes the window without saving your changes. |
![]() |
Opens the Script Code window. The script is stored automatically in the project file. |
![]() |
Displays the help for the open window. |
Related topics: