Configure Dynamic Field Display Properties
You can configure to hide and show, or enable and disable a field on a profile screen based on the value of another field on that screen.
cim1265
You can configure
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
- Add the field for which you are configuring dynamic field properties, if necessary.
- Click the Edit icon next to the field name to edit it.Identity Managerdisplays the Field Properties dialog.
- Enter JavaScript code in the Validation JavaScript field using the following method:
The FieldContext class includes the following methods for showing/hiding and enabling/disabling a field:function validate(FieldContext, attributeValue, changedValue, errorMessage)- 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.
- Click Apply, then Click OK.