Previous Topic: How to Change Field Display Properties DynamicallyNext Topic: Screen-Defined Logical Attributes


Configure Dynamic Field Display Properties

You can configure CA Identity Manager to hide and show, or enable and disable a field on a profile screen based on the value of another field on that screen.

To configure dynamic field display properties

  1. Edit the profile screen.

    CA Identity Manager displays a list of fields configured for the screen.

  2. Add the field for which you are configuring dynamic field properties, if necessary.
  3. Click the Edit icon next to the field name to edit it.

    CA Identity Manager displays the Field Properties dialog.

  4. Enter JavaScript code in the Validation JavaScript field using the following method:
    function validate(FieldContext, attributeValue, changedValue, errorMessage) 
    

    The FieldContext class includes the following methods for showing/hiding and enabling/disabling a field:

    public void hide();

    Hides the field.

    public void show();

    Displays the field.

    public void hideField(String attrName);

    Hides the current field.

    public void showField(String attrName);

    Displays the current field.

    public void disable();

    Disables the current field.

    public void enable();

    Enables the current field.

    public void disableField(String attrName);

    Disables a field for a specific attribute.

    public void enableField(String attrName);

    Enables a field for a specific attribute.

  5. Click Apply, then Click OK.