Only Allowing One Selected Value From A Checkbox Enumeration List
I am listing 2 or more possible selections in a Checkbox Enumeration List. I only want to allow one. So when the user picks one and then switches and selects the other, the first selection disappears. When the SAVE button is selected, only one of the check boxes can be selected. Is there a way to do this?
Accepted answer
if you only want to have one selection, using Enumeration is a better choice. I don't think Checkbox Enumeration list has the logic to only allow one selection by default.
One other answer
I agree with Don here. If you want just one value, use an enumeration, not an enumeration list.
The options you can try with enumerationList is
The options you can try with enumerationList is
- A JavaScript based Validator. JavaScript does not work well with lists, I think you get a string with comma separated values. So if you have a separator you have multiple values. See Process Enactment Workshop for the Rational solution for Collaborative Lifecycle Management Lab5
-
A Java based Validator. See
Attribute Customization – Java Based Value Providers, Conditions and Validators -
A Java based Advisor extension. See
Only Owner Can Close WorkItem Advisor as a starting point.