Expand my Community achievements bar.

Show on click evert

Avatar

Former Community Member
I have 3 radio buttons that I would like to tie to a textbox and fill it in when clicked.



I was thinking something like



if radiobutton = true

then textbox.text = "you clicked one" & textbox2.text = "you clicked one"

if radiobutton2 = true

then textbox.text = "you clicked two" & textbox2.text = "you clicked one"

if radiobutton3 = true

then textbox.text = "you clicked three" & textbox2.text = "you clicked three"

end if



'I not familiar with with formcalc or java so any help will be appreciated
1 Reply

Avatar

Former Community Member
I found what I was looking for here



http://www.adobeforums.com/webx?7@@.3c05748c/3



The first pc of code didn't work as posted but all I had to do was throw in a couple of else if's and it works just find.



Thanks for the help.



if (this.rawValue == 1) {

subform1.TextField1.rawValue = "You picked Choice 1";

subform1.TextField2.rawValue = "You picked Choice 1"

}

else if (this.rawValue == 2) {

subform1.TextField1.rawValue = "you picked choice 2";

subform1.TextField2.rawValue = "you picked choice 2"

}

else if (this.rawValue == 3) {

subform1.TextField1.rawValue = "You picked choice 3";

subform1.TextField1.rawValue = "you picked choice 2"

}

else {

subform1.TextField1.rawValue = "Please select one of the radio buttons";

}