You need to sign in to do that
Don't have an account?
Charlie Cox 1
Radio Buttons in a repeat.
I want a user to be able to select either Rice or Texas, Then in the next row be able to select Navy or Army. Basically I want a user to have 1 radio button per row.
RIght now I am only able to select Navy or Army or Texas or Rice. (I can only pick 1 of the 4 instead of 1 of each 2.)
<apex:repeat var="a" value="{!picks}">
<input type="radio" class="radio" name="x" value="{!a.homeTeamSelected}" id="y" />
<label for="y">{!a.homeTeamName}</label>
<input type="radio" class="radio" name="x" value="{!a.awayTeamSelected}" id="z" />
<label for="z">{!a.awayTeamName}</label> <br/> <hr/>
</apex:repeat>
Here is the section of my VF page. I have looked around and previous solutions have not worked for me so any new input would be great!
Thanks!
RIght now I am only able to select Navy or Army or Texas or Rice. (I can only pick 1 of the 4 instead of 1 of each 2.)
<apex:repeat var="a" value="{!picks}">
<input type="radio" class="radio" name="x" value="{!a.homeTeamSelected}" id="y" />
<label for="y">{!a.homeTeamName}</label>
<input type="radio" class="radio" name="x" value="{!a.awayTeamSelected}" id="z" />
<label for="z">{!a.awayTeamName}</label> <br/> <hr/>
</apex:repeat>
Here is the section of my VF page. I have looked around and previous solutions have not worked for me so any new input would be great!
Thanks!
David Zhu
I also have problem with grouping input component. I can only implement this using selectradio.