The problem is that the code only works for a single star slider.
Can anyone please provide me with a code for multiple star sliders?
Thanks so muchSolved
Multiple star sliders- how to set custom values
Hi all,
I have this question and I found this code to have different values show to the respondent (ATTACHMENT)
!
The problem is that the code only works for a single star slider.
Can anyone please provide me with a code for multiple star sliders?
Thanks so much
The problem is that the code only works for a single star slider.
Can anyone please provide me with a code for multiple star sliders?
Thanks so muchBest answer by KimothiSaurabh
@BettoLamacchia - That setup is mobile friendly by default bu if you still want values to be shown above starts, you can use this code:-
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
jQuery('.ResultsInput').hide();
jQuery('tbody .BarOuter').prepend("<div class='autoinsert'></div>")
jQuery('.ResultsInput').on("change input",function()
{
var widthvalue = parseInt(jQuery(this).val());
if (widthvalue==1)
{
jQuery(this).parent().parent().find('.autoinsert').html("Molto insoddisfatto");
}
if (widthvalue==2)
{
jQuery(this).parent().parent().find('.autoinsert').html("Insoddisfatto");
}
if (widthvalue==3)
{
jQuery(this).parent().parent().find('.autoinsert').html("Molto 3");
}
if (widthvalue==4)
{
jQuery(this).parent().parent().find('.autoinsert').html("Molto 4");
}
if (widthvalue==5)
{
jQuery(this).parent().parent().find('.autoinsert').html("Molto 5");
}
});
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
