Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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? 

0 votes


Accepted answer

Permanent link
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.
Rob Olsen selected this answer as the correct answer

1 vote

Comments

Well I was hoping I was just missing something out there, but you confirmed what I was seeing, that there is no way to do without writing some script logic behind it.  Thanks!


One other answer

Permanent link
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
  1. 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
  2. A Java based Validator. See
    Attribute Customization – Java Based Value Providers, Conditions and Validators
  3. A Java based Advisor extension. See
    Only Owner Can Close WorkItem Advisor as a starting point.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,131

Question asked: Jun 01 '15, 10:29 p.m.

Question was seen: 3,423 times

Last updated: Jun 02 '15, 11:33 a.m.

Confirmation Cancel Confirm