hope anyone could help with this. I would like to show custom values to multiple slider question respondents (e.g. 'good' when '3' is selected).
Has anyone an appropriate code?
!
Thanks in advance
Qualtrics.SurveyEngine.addOnReady(function()
{
jQuery('.ResultsInput').change(function()
{
updateTT(jQuery(this));
});
jQuery('.trackHolderRel').mousedown(function()
{
updateTT(jQuery(this));
});
function updateTT(element)
{
console.log(jQuery(element).find('.sliderToolTipBox').length)
if(jQuery(element).find('.sliderToolTipBox').length==1)
jQuery(element).find('.sliderToolTipBox').parent().append('<div class="sliderToolTipBox">2</div>')
jQuery(element).find('.sliderToolTipBox').eq(0).hide();
jQuery(element).find('.sliderToolTipBox').eq(1).html('Good')
}
});
!
I know this can be done in better way if you can access events of slider but for now this seems the best workaround.
> @BettoLamacchia - Please make sure "Show Value" is checked in question property. If this still don't work, would like to see your html layout or you can share link with me.
Hi Kimothi, I just need an example on how to modify last row to have different value (e.g. 'good' for 3, 'excellent' for 5). Thanks again
I join to
I followed the example from
Thanks in advance!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.