Making the NPS options smaller | XM Community
Solved

Making the NPS options smaller

  • 15 November 2019
  • 2 replies
  • 7 views

Badge
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?

!
icon

Best answer by NiC 15 November 2019, 22:29

View original

2 replies

Userlevel 7
Badge +27
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
Badge
This works! Thanks so much NiC!

Leave a Reply