Hello everyone,
I have been looking around for code to assist me in building a form. I have developed the form, and just have a couple problems that I can't figure out.
In one question on the form the user can choose from one set of radio buttons and select one of the five options. Then I have a second set of radio buttons, that the user can again only choose one option. My problem is that I only want the user to be able to select from the second set of radio buttons if they selected a certain option in the first set. An example to clear up my problem:
Did you finish the training:
Yes
Half
None
So if the user selected yes from the first set of radio buttons, I want the second set of radio buttons to now be selectable:
The training was:
Up-beat and enjoyable
Snoozer
The conditions that I am using are very different than these but this is just a simple skit. So how do I make the second set of radio buttons unselectable until the user selects a specific radio button from the first set of radio buttons.
Thanks, I really appreciate the help!
Solved! Go to Solution.
Views
Replies
Total Likes
If you have a radio button exclusion group called 'completion' with three items 'Yes','Half', and 'None' and a second radio button exclusion group called 'completion', go to the 'feedback' Value tab and set the type to 'readOnly'.
Add the following script to the 'completion' change event...
// form1.page1.subform1.completion::change - (JavaScript, client)
if (this.rawValue == "Yes") {
form1.page1.subform1.feedback.access = "";
}
else {
form1.page1.subform1.feedback.access = "readOnly";
form1.page1.subform1.feedback.rawValue = "";
}
If the user selects 'Yes', the 'feedback' group is available for selection. If the user does not select 'Yes', 'feedback' is reset and made readOnly.
Steve
Views
Replies
Total Likes
If you have a radio button exclusion group called 'completion' with three items 'Yes','Half', and 'None' and a second radio button exclusion group called 'completion', go to the 'feedback' Value tab and set the type to 'readOnly'.
Add the following script to the 'completion' change event...
// form1.page1.subform1.completion::change - (JavaScript, client)
if (this.rawValue == "Yes") {
form1.page1.subform1.feedback.access = "";
}
else {
form1.page1.subform1.feedback.access = "readOnly";
form1.page1.subform1.feedback.rawValue = "";
}
If the user selects 'Yes', the 'feedback' group is available for selection. If the user does not select 'Yes', 'feedback' is reset and made readOnly.
Steve
Views
Replies
Total Likes
I am having a hard time placing the script. I uploaded it to a generic file site, http://www.mediafire.com/?rnmy2hm0o5y
Can you point out to me where to put that in. I am not very good with code, because I generally use the friendly user face.
I am working with step four and five. I have disabled the aftercare, monitoring only, relapse prevention, and no qualifier. I only want the user to be able to select them if they select finish. I know that I have some other things that I need to add to this form to fix it up, but this is my first one.
Thanks a ton!
Views
Replies
Total Likes
Click on the radio button exclusion group in the Hierarchy and add the script to the change event in the Script Editor window.
If you would like, send an email to stwalker.adobe@gmail.com and I will forward the form.
Steve
Email sent!
Thanks
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies