I'm having trouble with a nested list of radio button options on an order form where the customer picks a "narrowing" list of descriptive options. I'm thinking from research that this needs an array to solve the problem I'm having. However, I'm new to setting up and using an array, so could use some help. Here goes!
There is a four option radio button list1.
When an option is chosen from List 1, another list is displayed--a different one for each option from List 1.
So these are lists 2-5
The number of options on lists 2-5 vary.
List 2 has five options - each option opens another list. These lists have a variety of number of options.
List 3 has two options - each option opens another list. These lists have a variety of number of options.
List 4 has two options - each option opens another list. These lists have a variety of number of options.
List 5 opens a free form field.-
I have the scripts working for each option to open the correct sub list. However, if at the third level the user changes their mind and goes back to level 1 and changes the option, the last set of options does not become hidden.
Am I correct that this needs an array to control. A sample of how to set up an array would be helpful.
To perhaps to help others needing a solution, I'm sharing my fix. I fixed this problem by changing from radio button lists to drop down lists. The second drop down list is populated by the first drop down list. Then for the third level, I kept the radio button lists. For some reason, using the switch/case scripting, I was able to allow the user to go back to the first drop down and change their selection and get all radio button lists to be hidden. Here is the script I used: