Adding a 'DK/DA' option into a 0-10 scaled question | XM Community
Skip to main content
Solved

Adding a 'DK/DA' option into a 0-10 scaled question

  • December 18, 2023
  • 11 replies
  • 153 views

VictorAV
Level 3 ●●●
Forum|alt.badge.img+6

Hi Qualtrics team.

I want to make a nice looking question on a horizontal 0-10-scale + a ‘I don't use it’ category.

If I include this ‘I don’t use it’ option at the end it does not look very well as the text is long. 

Would it be possible to include these ‘I dont’ use it option’ at the bottom of the question?
 

Thanks for your help! 

Best answer by Deepak

@VictorAV 

Try using below code:

Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
jQuery('.ChoiceStructure').append(jQuery('.LabelContainer:last'));

});

 

11 replies

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • Answer
  • December 18, 2023

@VictorAV 

Try using below code:

Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
jQuery('.ChoiceStructure').append(jQuery('.LabelContainer:last'));

});

 


VictorAV
Level 3 ●●●
Forum|alt.badge.img+6
  • Author
  • Level 3 ●●●
  • 52 replies
  • December 18, 2023

Thanks @Deepak, this is how it shows:
 

Do you know if there is another approach to do it better without asking 2 separate questions? Thanks


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • December 18, 2023

@VictorAV Do you have any illustration of what you’re looking for?


VictorAV
Level 3 ●●●
Forum|alt.badge.img+6
  • Author
  • Level 3 ●●●
  • 52 replies
  • December 18, 2023

@Deepak in the code I’ve entered maybe it’d be possible to distinguish better this ‘I don’t use...’ option, for instance, by making the grey background different or delete it. Something like that by working with the layout.

With ‘another’ approach I want to know if it can be used other type of question to do it.

Thanks!


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • December 18, 2023

@VictorAV 

You can use CSS like background-color as mentioned below.
 jQuery('.LabelContainer:last').css('background-color', '#000');

 

If you want to use other question type which has not applicable option try using slider type.


VictorAV
Level 3 ●●●
Forum|alt.badge.img+6
  • Author
  • Level 3 ●●●
  • 52 replies
  • December 18, 2023

Thanks for all your support @Deepak 


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • December 18, 2023

@VictorAV 

I believe you marked wrong comment as best answer


VictorAV
Level 3 ●●●
Forum|alt.badge.img+6
  • Author
  • Level 3 ●●●
  • 52 replies
  • December 18, 2023

yes, and don’t know how to edit


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • December 18, 2023

@AmaraW 

Can you help here?


JoseS
Administrator
Forum|alt.badge.img+20
  • Administrator
  • 449 replies
  • January 4, 2024

@Deepak The Best Answer should be fixed now! Please let me know if it is correct, or if another comment should be marked. 🙂


VictorAV
Level 3 ●●●
Forum|alt.badge.img+6
  • Author
  • Level 3 ●●●
  • 52 replies
  • January 8, 2024

@JoseS yes, that’s correct, thanks! 😀