- Oct 30, 1999
- 11,815
- 104
- 106
Ok... I'm trying to make a form for people trying to submit info to me.
I would like to have a textarea appear only based on the condition that the previous element of the form is answered a certain way.
For example, if I ask "Do you want more information about IP Office?" and there's a radio button for "Yes" and "No," normally I would have "If no, please explain what product you would like more information on." as the next form element.
What I would like to do is leave the text and textarea field "invisible" for those who answered "yes." If they answer "yes," the field is going to be left blank anyway. If they answer "no," I would like the textarea to appear so they can fill it out.
I know I can do it if they were two seperate forms. Submit the first part and then create a second form on the fly based on the results of the first, but I want this to be seamless and all submit in one form.
Any takers?
I would like to have a textarea appear only based on the condition that the previous element of the form is answered a certain way.
For example, if I ask "Do you want more information about IP Office?" and there's a radio button for "Yes" and "No," normally I would have "If no, please explain what product you would like more information on." as the next form element.
What I would like to do is leave the text and textarea field "invisible" for those who answered "yes." If they answer "yes," the field is going to be left blank anyway. If they answer "no," I would like the textarea to appear so they can fill it out.
I know I can do it if they were two seperate forms. Submit the first part and then create a second form on the fly based on the results of the first, but I want this to be seamless and all submit in one form.
Any takers?