Dynamically adjusting max value of slider | XM Community
Question

Dynamically adjusting max value of slider

  • 20 November 2019
  • 1 reply
  • 7 views

Hi, I'm a newbie to Qualtrics.

Please assume the following situation

1. In Qid1, subject report some value x

2. In Qid2, subject reports through slider which has a value [0,x]


Could someone help me out how to code this up?

Any kind of sample code is really appreciated.

1 reply

This is what I tried. (I just want to customize the min and max of the slider through J query but still, it is difficult for me)

Qualtrics.SurveyEngine.addOnload(function()
{
jQuery("#QID58~1~true-result").prop('min',1);
jQuery("#QID58~1~true-result").prop('max',10);
});

Qualtrics.SurveyEngine.addOnReady(function()
{
jQuery("#QID58~1~true-result").prop('min',1);
jQuery("#QID58~1~true-result").prop('max',10);
});
Could someone give me a guidance to get through?

Leave a Reply