Storing last question answered in each block | Experience Community
Skip to main content
Question

Storing last question answered in each block

  • September 16, 2026
  • 1 reply
  • 9 views

Forum|alt.badge.img

Each of my blocks in my survey has so much display logic tied into answering that even though there are 31 questions in a block, a participant will only answer no more than 5 of them. I also only really want to know how they answered the last question of each block, essentially seeing which question they ended up with based on my display logic and how they responded to it. Is it possible to store this information as an embedded data field for each block? Is there a better method for pulling the last question from a block that has a lot of intricate display logic?

1 reply

Forum|alt.badge.img+29

If it is just to look for the last answered question for one block:

Since a participant will only answer at most 5 questions out of 31 questions, you could export the response data for all collected response and see the last column with inputs.

 

If it is to know the last answered question for multiple blocks:

perhaps you might want to create an embedded data for each block you have at the top of the survey flow.

Then, for each question, add JavaScript to save the input into the embedded data.

 

E.g. all questions in block 1 should be JavaScript to save input into embedded data block1lastseen while all questions in block 2 should be JavaScript to save input into embedded data block2lastseen...

 

Note: different question types may require different code due to structure.