Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

generating textbox when a radiobutton is selected v6.6.8

I have to generate a textbox if the user selects negative radiobutton( 3 of 5 radio buttons should generate textbox if selected.)

I am absolutely clueless on how to get it done.

Q1 question
A. Rb1 Rb2 Rb3 Rb4 Rb5

if the user selects Rb1 through Rb3, a textbox should pop out which would as user to enter why he feels negatively.


 Can someone please help me with this.
asked Sep 11, 2012 by sonalk (140 points)
retagged Sep 13, 2012 by Walter Williams

1 Answer

+2 votes
You can use <span> tag to create textbox there. You need to create free format quesiotn and then put below code with radiobutton.
<TABLE width="100%"><tr><td><Span id="Other"></Span></td></tr></table>



now you need to call one function using onClick event and put this code there.


var a="Comments? (Please specify)&nbsp;&nbsp;<INPUT type=text id='Q3AWHY_A13' size='80' name='Q3AWHY_A13'>";
        document.getElementById("Other").innerHTML=a;


This code is from ssi v7. So i am not pasting code according to 6.6 . You need to call using simple onclick event
answered Sep 13, 2012 by Rajesh Rana Gold (24,715 points)
...