Configure the script field for records screens
Configure script screen fields to display calculated or personalized content in your mobile forms, without modifying the underlying database values.
Before you begin
Role required: admin
Note: For use cases and examples of how the script screen field is used, see Dynamic variable support in record screens.
Procedure
In the web-based UI, enter
sys_sg_screen_field.listin the filter navigator.Select either an existing form field or select New to open the Screen fields page.
On the Screen fields page, fill in the required fields.
| Field | Description |
|---|---|
| Type | Type of screen field. For a list of types and a description of how they're used, see Screen fields.For this configuration, select Script. |
| Form field | Table field that the screen field uses as a data source. Select a field that contains the dynamic variable you want to use for the script. |
| Hidden | Option to avoid this field from showing on the record screen. |
| Order | Order in which this field appears. Fields appear on the record screen from the lowest to the highest value. |
| Value only | Value of the field without the field label. |
| Screen | Record screen field that displays data from the table field specified in Form Field field. |
| Execution script | Script that runs when the record screen is displayed. The script must return a JSON object containing the Type and Value to display. |
Select Script from the Type field.
From the Screen field, select the record screen where the execution script is to be activated.
Enter your script in the Execution Script area, including any dynamic variables.
Note: For configuration information, see Dynamic variable support in record screens.
Select Submit.
Parent Topic:Add screen fields to a record screen