Problem with positioning of Slider (stars) widget | XM Community
Skip to main content
Question

Problem with positioning of Slider (stars) widget


Forum|alt.badge.img+2

Hello,

 

i have a problem with position of 5 stars rating question. I am using slider with stars setting.

Slider is on the  bottom of site and i would like to move whole question to the left side of screen.

 

What can i do to move it to left?

3 replies

Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • August 31, 2023

@Adam R. Do you have any other setting with this question like Javascript or custom HTML, CSS, Rich content editor, etc….

I’ve been trying to recreate the issue but by defaut the question gonna align to the left.


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 3 replies
  • September 1, 2023

@dxconnamnguyen in this survey i have javascript:
 

Qualtrics.SurveyEngine.addOnload(function()
{
var questionId = this.questionId;
var choiceInputs = $$('#'+this.questionId + ' .ChoiceStructure input');
for (var i=0; i < choiceInputs.length; i++)
{var choiceInput = choiceInputs[i]; try
{if (choiceInput && choiceInput.parentNode)
{choiceInput.parentNode.appendChild(QBuilder('span',{style:"font-size:12px"},'bardzo dobrze'));
}
}
catch(e)
{
}
}
    `jQuery("#"+this.questionId+" label.SingleAnswer").css({"padding":"5px","display":"inline-block"});`
});

Qualtrics.SurveyEngine.addOnReady(function()
{
    /*Place your JavaScript here to run when the page is fully displayed*/

});

Qualtrics.SurveyEngine.addOnUnload(function()
{
    /*Place your JavaScript here to run when the page is unloaded*/

});


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 3 replies
  • September 1, 2023

@dxconnamnguyen but this stars i have align on the bottom on surveys without javascript also.

 

Settings in look and feel are these:

  • Layout - “Flat”
  • Style:
    - Font - “Default”
    - Contrast - “Low”
    - Question Spacing - “Compact”
  • Motion - “None”

and i don’t have any CSS and JS.


Leave a Reply