Is it possible to calculate embedded data inside a block (rather than after it) and use it for display logic for subsequent questions in the same block?
I have a block of questions, some of which are used to calculate a score in the format of embedded data. However, the embedded data is only calculated after the block is completed, as seen in ‘Survey Flow’. I would like to use this embedded data within that block to direct participants to different subsequent questions (from the same block) depending on their score.
But the ‘Survey flow’ section allows to insert embedded data only between blocks, not inside them.
Does this mean I need to split my block into several blocks, with the embedded data calculated in between them?
Use JS to calucate the embedded data value and store it in respective embedded data.
Thank you, that worked!
I created an empty embedded variable called ‘PHQ9TotalScore’ just before that session in the survey flow, and then used JS to update it as soon as the repective answers are collected. I could then use thios embedded data for logic in subsequent questions in the same session.
Here is my script (which I added to the question following question ‘phq9’):
I clicked the other one by mistake and unfortunatelly cannot change it:
“according to our guidelines, once a "Best Answer" has been selected it cannot be changed. Please ensure to carefully consider your choice before making it final.”