This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:radio - dynamic values ?

 
Gayatri Ganesh
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a question regarding the <html:radio.

I have 5 radio buttons in a group.
The last 3 have a textfield and a <html:select besides it.
So when the user clicks on say the 3rd radio, I need the value to be submitted equal to "xyz" + the selected value in the <html:select.

So, the code is like this :

<html:radio property="okay" value="1"/> 1
<html:radio property="okay" value="2"/> 2
<html:radio property="okay" value="3"/> 3
<html:select property="selectedValueA">
<html ptions name=myform" property="mylist1"/>
</html:select>

<html:radio property="okay" value="4"/> 4
<html:select property="selectedValueB">
<html ptions name=myform" property="mylist2"/>
</html:select>
<html:radio property="okay" value="5"/> 5
<html:select property="selectedValueC">
<html ptions name=myform" property="mylist3"/>
</html:select>

So if user selected radion button 3, I need the value to be submitted = "3" + whatever was selected from the dropdown with property="selectedA"
(i.e the value of the radio button + value selected in dropdown)
Is there any way we can do this ?
I trieds to put
value="3 + <c ut value="{myform.selectedB}"/>"
but it complains.

Does anyone know how we can do it ?

Thanks,
Gayatri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic