I've got another wacky situation I'm trying to deal with. I need to set a dynamic gender text-fill (he/she) based on the question immediately before hand, inside a loop. I know how to do this in other platforms but Qualtrics is a bit trickier. Below is the scenario:
Q1 [text/numeric]
How many siblings do you have?
[Looped block based on Q1 - max 99 iterations]
LoopQ1 [radio]
What sex was this sibling assigned at birth?
1: Male
2: Female
3: Intersex
LoopQ2 [text/numeric]
How old is [he/she/your sibling] today?
I've been trying a few different things out but this is pretty tricky because it's in a loop. My first instinct was to create a hidden text-fill question between LoopQ1 and LoopQ2 that sets its value based on LoopQ1, but I'm having trouble creating JavaScript that can dynamically set itself based on a question on the same screen.
My attempt so far has to use some jquery to search for "ends with" but it's been kind of wonky. Any ideas how you would go about doing the above situation?
Criteria- it's in a loop and the respondent MUST be able to back up to previous questions.
Best answer by Pete_L
View original