Using radio buttons to set the value of a text field

Avatar

Avatar
Validate 1
Level 1
Cindy_Pao
Level 1

Likes

0 likes

Total Posts

22 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Cindy_Pao
Level 1

Likes

0 likes

Total Posts

22 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
Cindy_Pao
Level 1

04-08-2011

I have a set of three radio buttons on a form (a performance evaluation). If I select the "1" button, I want 1 to populate in the text field. The same goes for "2" and "3"

I have not been able to code the buttons correctly for this scenario, and can't figure out how to do it.

From a previous post, I was able to get check boxes to do what I want, but they won't really work because I can't set them so that only one back may be selected.

Can this be done?

Thanks!

View Entire Topic

Avatar

Avatar
Give Back 3
Level 2
past-tense
Level 2

Likes

9 likes

Total Posts

85 posts

Correct reply

10 solutions
Top badges earned
Give Back 3
Give Back
Validate 1
Boost 5
Boost 3
View profile

Avatar
Give Back 3
Level 2
past-tense
Level 2

Likes

9 likes

Total Posts

85 posts

Correct reply

10 solutions
Top badges earned
Give Back 3
Give Back
Validate 1
Boost 5
Boost 3
View profile
past-tense
Level 2

04-08-2011

That looks right to me (assuming that the text field is called "WorkSkillsRating") when you select the code for any element that has nested elements (as with WorkSkillsButtons having WorkSkills1-3) the code for the selected event for each nested element is shown. you can ignore:

form1.Page2.WorkSkillsButtons.WorkSkills1::initialize - (FormCalc, client)

 

 

form1.Page2.WorkSkillsButtons.WorkSkills2::initialize - (FormCalc, client)

 

 

form1.Page2.WorkSkillsButtons.WorkSkills3::initialize - (FormCalc, client)

...because those are the placehoders for the initialize events of each radio button in the group.

The important part is:

form1.Page2.WorkSkillsButtons::initialize - (FormCalc, client)

WorkSkillsRating.rawValue = $.rawValue

make sure it's on the same line. the same should be done for the change event.