First published on MSDN on Dec 11, 2014
Previously in the post RCDC - Session 2 - Adding a new Attribute to an Existing TAB We added the attribute Employee Status to the Create User RCDC. Currently this attribute is displayed via a standard Text Box.

we could control what values a user can type within that text box by adding a Regular Expression. If you followed the Schema Management Series in this Blog you might remember the Post Schema Management - Binding a New Attribute which details the binding of a new attribute to a resource. This posting additionally makes note of the Validation Tab which we will now use to apply a regular expression that will restrict the types of values that can be typed for Employee Status .
- From the Administration Page of the Portal Click on Schema Management

- From the Schema Management Page click on All Bindings, In the Schema Management - All Bindings Window Type Employee in the Search for Box and click on Enter or the Magnifying Glass.
- From the Employee Status Attribute Window click on the Validation Tab

- In the Text Box for String Pattern Type ^(Enabled|Disabled|InActive)?$
- Verify that a change has been made, Click on Submit to close the window
- At this time only the values that are types in the text box for String Pattern would be accepted values typed in for a value to the Employee Status Attribute, Any thing other than Enabled, Disabled, or Inactive were display a denied message and not commit the change.
- Now lets say we would like to Make it easier to let the user know what the allowed attributes are, we can convert the Textbox in the RCDC configuration to Dropdown Menu. Now if you have been following this series you may remember in the post RCDC - Session 2 - Adding a new Attribute to an Existing TAB how we updated the RCDC to include the Employee Status Attribute as a Text Box. From your Text Editor of your choice grab the RCDC Configuration file that you wish to convert the Text box to a dropdown and open it up.
- Now change the section UocTextBox to UocDropDownList
- save the configuration file and import the new RCDC.