Display logic on groups | XM Community
Skip to main content
Solved

Display logic on groups

  • May 18, 2022
  • 4 replies
  • 189 views

Forum|alt.badge.img+1

Is it possible to do display logic on a group in a "pick, group and rank"-question? I can see, that it's possible on items, but can't seem to find it for groups.

Best answer by TomG

No, there is no display logic for groups in a PGR. You can use JavaScript to hide groups.

4 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • May 18, 2022

No, there is no display logic for groups in a PGR. You can use JavaScript to hide groups.


Forum|alt.badge.img+3
  • October 11, 2022

Hi TomG,
I am a newbie in terms of Javascript. Can you give me an example of the code I would need to use to hide a group that has 15 items.
Thank you in advance


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • October 11, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/50639#Comment_50639Here is an example that hides the last group:
jQuery("#"+this.questionId+" .groupsContainerTd Group").last().hide();


SuhasM
Qualtrics Employee
Forum|alt.badge.img+16
  • Qualtrics Employee
  • October 12, 2022

Thank you TomG for looping back on the thread to provide another single line custom code solution! 👏