Hello!
I am trying use Javascript to write survey logic on embedded data variables. To break that down, survey participants will be asked to choose between option A or option B in question 1. For the next question, they will be asked to choose between option C or option B OR option D or option B, and they will be shown C or D depending on their choice in the first question.
I have this working between blocks using survey logic, but I need it to work within a block:
but I want this to work within a block (between questions). So in the following block, I need Javascript code that determines the value of littleSS2 in Q2 based on the option chosen in Q1. For example, if you choose the first option in Q1, then littleSS2 = 50; however, if you choose the second option in Q2, then littleSS2 = 100.
Does that make sense? What kind of Javascript code should go in Q2 that would take care of this?
Thank you for your help!
Question
Javascript for survey logic and embedded data variables
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
