Making the NPS options smaller | XM Community
Skip to main content
Solved

Making the NPS options smaller

  • November 15, 2019
  • 2 replies
  • 15 views

Forum|alt.badge.img
I notice that when using a dynamic theme, the NPS options appear to be cramped together. Is there a way to make the options smaller such that there is a gap in between every option? !

Best answer by NiC

Hi @chrissien , You can use the following code in the NPS Question (JS inside addOnload / addOnready function) to add space between the buttons: if (window.matchMedia('(max-width: 480px)').matches) { jQuery('label.SingleAnswer[id*="'+this.questionId+'"]').css({"padding-right": "0px","padding-left": "0px","height": "38px", "width": "20px"}); } Here is a preview link of how this looks: https://ugamsandbox.ca1.qualtrics.com/jfe/preview/SV_7Oj5oVmCKWGfF3f?Q_SurveyVersionID=current&Q_CHL=preview

2 replies

NiC
QPN Level 5 ●●●●●
Forum|alt.badge.img+27
  • QPN Level 5 ●●●●●
  • 255 replies
  • Answer
  • November 15, 2019
Hi @chrissien , You can use the following code in the NPS Question (JS inside addOnload / addOnready function) to add space between the buttons: if (window.matchMedia('(max-width: 480px)').matches) { jQuery('label.SingleAnswer[id*="'+this.questionId+'"]').css({"padding-right": "0px","padding-left": "0px","height": "38px", "width": "20px"}); } Here is a preview link of how this looks: https://ugamsandbox.ca1.qualtrics.com/jfe/preview/SV_7Oj5oVmCKWGfF3f?Q_SurveyVersionID=current&Q_CHL=preview

Forum|alt.badge.img
  • Author
  • 12 replies
  • November 18, 2019
This works! Thanks so much NiC!