Below is the list of functions as documented part of the API that helps hide/show a value. Please these relate to Single Valued attributes. They do not work with Multi-Valued attributes.
Working with customers on this topic we realized that you might want to use Policy Xpress (PX) , create a policy of type 'UI' and use the 'SetSubject' in order to achieve this for multi valued attributes.
----------
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.
----------
Yours,
Sagi Gabay,
CA Technologies.