This is a simplification of a problem that I am having that requires javascript.
Let's say I have two questions in the same page:
Q1: Please choose one:
- Tim
- Bob
- New partner
Q2: [in-page display logic: conditional on Q1=="New Partner"] Please type their name: [text entry]
I want to set embedded data if there is new partner. Let's say I put the javascript in Q2. How would I reference Q1 answer choice so that I can say "if Q1=="New Partner" then set Q2 text entry as embedded data"? I understand I can reference the id of the current question by doing this.questionId but how does that work with the previous question or any other question? Or maybe I can condition the javascript on whether Q2 is shown somehow?