Hello-
I am trying to create an example survey flow for my team with the javascript needed to autofill an answer from a previous question in the following scenarios. I have come across examples of javascript for these scenarios, but I am completely new to javascript and finding it hard to decipher what parts I would adjust for my situation. Would love if someone would be open to writing instructions for each in a way that a javascript newbie can understand. Thank you for any help you may be able to give.
Scenario 1 (autoselect all the answers in 2nd question)
Q1. Which animal do you like?
- Fish
- Dogs
- Cats
- None of the above
::PAGE BREAK::
Q2. Which animal do you dislike?
(PIPE IN ANSWERS FROM ABOVE)
- Fish
- Dogs
- Cats
- None of the above
::PAGE BREAK::
Q3. Next question here
HELP NEEDED: What javascript would I add to Q2 to autoselect 1-3 if in Q1 the person selected 4 (none of the above) and would move to the next page
Scenario 2 (autoselect 1 answer in 2nd question)
Q1. Which animal do you like?
- Fish
- Dogs
- Cats
::PAGE BREAK::
Q2. Which animal do you like most?
(PIPE IN SELECTED ANSWERS FROM ABOVE)
- Fish
- Dogs
- Cats
::PAGE BREAK::
Q3. Next question here
HELP NEEDED: What javascript would I add to Q2 to autoselect the answer they selected in Q1 if they only selected 1 animal and would move to the next page
Again, I really appreciate as much detail for a newbie you could provide and THANK YOU for any one that does.