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.

Note:

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:

  1. Select the layout.

    The layout is displayed with the fields shown.

  2. Note the Read Only and the Required check boxes in the Form properties area.

  3. To make the field read only, simply click the Read Only checkbox.

  4. To make the field required, just click the Required checkbox.

  5. To make a field conditionally required, do the following:

    1. Hover over, and then click the Expression Editor.

    2. Select a variable from the drop-down list.

    3. To edit the conditions of the variable, hover over then, select the Expression Editor.

    4. In the Expression Editor, expand the fields variable list.

    5. Expand the SeverityCd variable and drag value on to the editor workspace as shown in the following example:

      The Expression Editor workspace.
    6. Add the following value to the expression: === 'ORA_SVC_SEV1'.

    7. Click Save.

      Now the field only displays when severity level 1 is reached