Changing Attribute to Required (or Not Required) Without Using Custom Control

tweisel
edited April 20, 2015 in Documentum #1

I'm trying to modify an attribute on the properties page of an object in Web Publisher after the controls on the page have been initialized. I'm trying to change the attribute so it's required (or not required) depending on the value of another attribute. So, for example, if a user selects a certain value for attribute A, then attribute B becomes required. If the user selects a different value for attribute A, then attribute B becomes not required.

The only way I've been able to make this work is by creating a custom control using the  <docbaseattributevalue> tag on the JSP form page and modifying it in the onRender() method with DocbaseAttributeValue.setRequired(Boolean boolean). I've been told there is a way to do this without creating a custom control. The custom control is presenting a problem because I don't want to change the order of attribute B in relation to the other attributes coming from the docbase. Is this possible without creating a custom control?

Any help would be greatly appreciated.

Tagged: