I need to use checkbox as radiobutton.
In my case I’d like to define a checkbox group but I don’t know why.
If I select one checkbox, I’d like that other checkbox are deselecting
Could you help me ?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If there is a static amount of radio buttons you need, you could use Spark States.
When you click the first one, it triggers the “check1” state in which the first check box is selected and the other is unselected. Clicking the second one does the opposite. Obviously, this is not as flexible as some would hope. But if it’s for an interface element (such as an options menu), it’s perfect.
States are incredibly useful if you understand how and when to use them. This past weekend, I created an all-Flex slideshow using them and it is a great example of how powerful that simple little array can be.
EDIT: I just threw together a simple app to test this, and it doesn’t look like it will work using click. I’m sure you could tinker with another event to get it to work, though. Sorry this didn’t work.