Determine when "This question was not displayed to the respondent." from the /responses API | XM Community
Skip to main content

Determine when "This question was not displayed to the respondent." from the /responses API

  • August 29, 2022
  • 2 replies
  • 28 views

etozzato
Forum|alt.badge.img+1

Greetings,
I am fetching participants' responses from the v3/responses endpoint and when rendering the content for a preview, I am not sure if there is a combination of data that implies the question was not displayed. I can't distinguish a question with no answer and a question that wasn't displayed.

2 replies

bgooldfed
Level 4 ●●●●
Forum|alt.badge.img+25
  • Level 4 ●●●●
  • August 30, 2022

Hi etozzato,
I haven't used that endpoint before but there is a an attribute named displayedFields that contains all fields that were displayed during the taking of the survey. Does that help?
Good luck!


etozzato
Forum|alt.badge.img+1
  • Author
  • August 31, 2022

Hello there,
yes, I am using displayedFields to filter out anything that wasn't displayed/answered, the solution works because it's not returning questions that were not presented during the survey, however this also hides anything where there is no prompt for the participant and nothing can be collected. Not a big issue, just a minor annoyance at this point!

Thanks!