Page 1 of 1
Subfile radio button
Posted: Thu Jun 22, 2017 1:05 pm
by HobeSoundFL
Hi, I have a radio button on a subfile. It is allowing you to select multiple radio buttons. I have the Radio Button Group set but you can still select multiple radio buttons. I need it to unselect a previously selected radio button when a different radio button is selected.
Thanks for you help.
Re: Subfile radio button
Posted: Thu Jun 22, 2017 2:13 pm
by Scott Klement
Your message can be interpreted a few different ways:
1) You have two or more radio buttons in the same row of the grid, and they have the radio button group set -- but it's not set to the same value on each button. In this case, the buttons aren't de-selected because they are in different groups -- so that's normal.
2) You have two or more radio buttons in the same row of the grid and they are set to the same radio button group as each other. In this case, it should de-select the other buttons in that row. It does for me when I try it.
3) You have one radio button in each row of a subfile, and you want it to select only one button in one row and turn off the buttons in the other rows. This won't work because each row of a subfile is a separate record. So even if the radio button group is bound to the same field name, it's really a separate field because it's in a different record. In this case, it is working as expected.
If the problem is #3, then I would recommend using row selection to select the row instead of radio buttons. It looks nicer, and will do what you're asking it to out-of-the-box. However, if you must do it with radio buttons, it may be possible with some JavaScript coding... it'll be more complicated, though, that's for sure, since you're going against the way it was designed to work.
Re: Subfile radio button
Posted: Thu Jun 22, 2017 2:47 pm
by HobeSoundFL
Thanks Scott, yes it was option #3. I will check out your suggestion. Thanks for you input!