Changing the name of field with radio buttons

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Luongo
    New Member
    • Oct 2006
    • 22

    Changing the name of field with radio buttons

    Hi,

    I'm setting up a survey form in which the user will select from a series of radio buttons (Session 1, Session 2, etc) and then rate different criteria of the selected session. I thought a good way to do this would be to set up up the entire form and then have the names of the rating fields change depending on which session was selected. This would be in order to differentiate between the different sessions. The problem, I thought, would be how to change the names of the fields if they have already been changed (ie if the user changes his/her mind and selects a different option). Would it be possible to reference the fields by id and change their names? or is there a better way of doing this? Thanks....
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    If you only need data for one session, then rather than change the field name, just get the radio button value on the server-side to determine which session the data is for. If you need multiple sessions, just display that part of the form when a particular radio button is clicked.

    Comment

    Working...