Hiding Blocks of Questions Based on URL Parameters from table of contents | XM Community
Skip to main content

helllo,

I'm distributing a survey with unique URLs for each respondent. The URLs include parameters like `r1=1`, `r4=1`, etc., where each `r` represents a specific information requirement. These requirements may include multiple questions grouped within a block.

 

  • My goal: I want to hide the block of questions if corresponding to a specific requirement if the corresponding parameter is present in the URL (e.g., hide the block for `r1` if `r1=1` is present) from appearing on the table of contents.
  • My question: How can I achieve this? Is there a way to use JavaScript or other methods within Qualtrics to dynamically hide blocks based on URL parameters from appearing on the table of contents?

 

I would appreciate any guidance or suggestions from the community on how to achieve this.

 

Thank you!

Move your blocks under branch logic. like if you want to show block 1, 4, 7 for r1. then add  branch logic in survey flow as

r1 is equal to 1

  •  Block 1
  •  Block 4
  •  Block 7

 

r4 is equal to 1

  •  Block 2
  •  Block 3
  •  Block 5
  •  Block 6

 

Then check your TOC, it will appear accordingly.

OR 


If it will not work the you can create two different TOC and put both TOC under branch logic. And then you can call specific block respective to r1 and r4.


@ArunDubey thanks. That worked.


Leave a Reply