How to make a group of radio button in repeating control?

A

AaLoK43

Hey guys!!
Can any1 tell me how to make a grp of radio button in a repeating
section?
I have 1 repeating section with 4 cols.
In 1 col I have added a radio button.
When the user adds data in repeating section s/he should be able to
seclect only 1 radio button.
Thanks for help

AaLoK
:)
 
S

S.Y.M. Wong-A-Ton

When you add a radio button to a form, you are prompted as to how many you
would like to add. The amount of buttons is then automatically added for you
to the form. If you want to add an additional radio button afterwards, you
can drag and drop a radio button onto the form, change its binding to the
same Data Source field as the other radio buttons, and change its "Value when
selected" (on the Properties dialog box for the radio button) to the value of
the last radio button plus 1 (so if you had 4 radio buttons on a form and
then added an additional one, the "Value when selected" of the new radio
button should be 5).
 
A

AaLoK43

I get that..but I want to add radio button in 1 col of a repeating
section..so I dont knw how many to add. Coz user can add multiples rows
since dey r in repeating section.
 
A

Adam Harding

AaLoK43

You want to add radio buttons to each row of your repeating table?

Adam
 
S

S.Y.M. Wong-A-Ton

Please try to explain your scenario on a different way, so that we can better
understand what exactly you are trying to do. Is it that you want to add a
radio button group across the repeating sections? That is, have 1 radio
button in each repeating section, and have all the radio buttons in all
sections function as 1 group?
 
N

NAT

Hi even I am facing the same problem. Any solution ?
To explain it :
I have a repeating section. In this section there is a table of one row.Now
the first column is a radio button. Since this is a repeating section so I do
not know the no. of rows that can be at a time. I want the user to select a
row by clicking on the radio button (first column). But since the radio
buttons cannot be grouped here. I want to user to select only one radio
button at a time. Is there any way I can acheive the grouping of the radio
buttons in this scenario ?
Thanks in advance
 
G

Greg Collins [InfoPath MVP]

You need to write your own OnAfterChange code which deselects any existing radio button selection after the user selects another one. Unfortunately this is the only way to do this right now without doing some custom work in the XSL itself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top