How to obtain user's choice in a radio buttons group box for further processing?
Added by Anonymous almost 13 years ago
I just finished with my web application's GUI part, which relies heavily on groups of radio buttons to provide an option mechanism. Now, I am looking to collect user choices from radio button groups in order to provide input parameters in certain algorithms.
I tried to obtain choices by using checkedButton() (declared in WRadioButton class) but my method didn't work properly. So, can you suggest me a function/methodology to proceed on this?
Replies (2)
RE: How to obtain user's choice in a radio buttons group box for further processing? - Added by Koen Deforche almost 13 years ago
Hey,
I guess you mean WButtonGroup::checkedButton() ? That should work, and other options are using checkedId() or selectedButtonIndex().
What kind of problem did you encounter ?
Regards,
koen
RE: How to obtain user's choice in a radio buttons group box for further processing? - Added by Anonymous almost 13 years ago
Thank you, especially for checkedId() suggestion. I tried to get the radio button's name string with wrong way.
I changed my method to use button's given id and its ok.