How do I make a field read only or required?
This task shows you how to set properties on a dynamic form to make its fields read only or conditional. For this example, we'll use the Create Service Request layout.
Required and Read Only are only available if a field in a layout isn't associated with a template.
First duplicate the default form if necessary, or choose your own layout, and then do the following:
-
Select the layout.
The layout is displayed with the fields shown.
-
Note the Read Only and the Required check boxes in the Form properties area.
-
To make the field read only, simply click the Read Only checkbox.
-
To make the field required, just click the Required checkbox.
-
To make a field conditionally required, do the following:
-
Hover over, and then click the Expression Editor.
-
Select a variable from the drop-down list.
-
To edit the conditions of the variable, hover over then, select the Expression Editor.
-
In the Expression Editor, expand the fields variable list.
-
Expand the SeverityCd variable and drag value on to the editor workspace as shown in the following example:
-
Add the following value to the expression:
=== 'ORA_SVC_SEV1'
. -
Click Save.
Now the field only displays when severity level 1 is reached
-