pick group rank limits in groups | XM Community
Skip to main content
Solved

pick group rank limits in groups


Hi. Thank you in advance for any assistance you may provide. My question pertains to the pick, group, and rank style question. By default Q offers the ability to set a limit and max entries into the categories options as a validation rule. However, the min and max are global across all groups. How would I be able to vary the min and max per group? E.g.: group 1 can only have one entry, group two can have a max of 3 but at least one, group 3 min is 1 but max is 2.

Best answer by Samarth

HI @RobandCI , I will follow below steps to accomplish this: Step 1 : Create a additional constant sum question with 3 option 1 each for the groups with initail value "0" just on same page as your question ! Step 2 : Create a JQuerry code to change the value of constant sum options corresponding to each group to "1" if the min and max per group for the group is fine. Attached is the code in file "Coderank" Step 3 : Apply custom validation checking that all constant sum value are "1" then only respondent can proceed ahead please update the error message accordingly ! I am attaching the survey file too for your reference, let me know if it works for you! Regards, Samarth
View original

6 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • March 8, 2018
I had a script that did this in SE, but it doesn't work with JFE. I looked into it a bit, and it would be VERY difficult to get it to work in JFE.

Samarth
Level 2 ●●
Forum|alt.badge.img+5
  • Level 2 ●●
  • 54 replies
  • Answer
  • March 22, 2018
HI @RobandCI , I will follow below steps to accomplish this: Step 1 : Create a additional constant sum question with 3 option 1 each for the groups with initail value "0" just on same page as your question ! Step 2 : Create a JQuerry code to change the value of constant sum options corresponding to each group to "1" if the min and max per group for the group is fine. Attached is the code in file "Coderank" Step 3 : Apply custom validation checking that all constant sum value are "1" then only respondent can proceed ahead please update the error message accordingly ! I am attaching the survey file too for your reference, let me know if it works for you! Regards, Samarth

Akdashboard
Level 4 ●●●●
Forum|alt.badge.img+6
  • Level 4 ●●●●
  • 488 replies
  • March 22, 2018
@Samarth - Genius. I even love the little touch of labeling the block 'magic'. Love it.

Anton
  • 1 reply
  • November 3, 2020

Samarth I'm looking to solve the same problem. Unfortunately your javascript is not working for me for an unknown reason - I get a validation error message for the pick, group and rank question no matter what (by the way, this now gets a warning that clearInterval is needed, but whether that's added or not doesn't fix my issue). Could the container id's e.g. "eq(0)" be different in my version of this question to your example I wonder?


Forum|alt.badge.img
  • 8 replies
  • May 21, 2021

https://www.qualtrics.com/community/discussion/comment/31623#Comment_31623Hello, if you do not mind, I would like to ask whether you have solved problem somehow?


Forum|alt.badge.img+6
  • QPN Level 2 ●●
  • 7 replies
  • May 17, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/1588#Comment_1588Thanks for your sharing. Unfortunately seems Qualtrics has done some update so it's not work now. Wondering if you have any idea or update?


Leave a Reply