I have the following setting, where in the same page there is a first 2-slider question (Q41 in the example below) and a further slide below (Q67). When going through the survey, the respondent decides on the desired values for the first two sliders.
I would like the second slider to always take the value 10 - (sum of previous sliders).

now, here is where i’m stuck. I can relatively easily add text below the two sliders that show my desired algebraic sum, using the following code:
Qualtrics.SurveyEngine.addOnReady(function()
{
var qid = this.questionId;jQuery("<p>You are realising savings for your firm of: <span id='tot'>10</span>.</p>")
.insertAfter("div.ChoiceStructure");function updateTotal() {
var $inputs = jQuery("#" + qid + " input.ResultsInput");
var A = parseInt($inputs.eq(0).val(), 10) || 0;
var B = parseInt($inputs.eq(1).val(), 10) || 0;
var tot = 10 - (A +|| 0;
jQuery("#tot").text(tot);
}jQuery("#" + qid + " input.ResultsInput")
.on("input change", updateTotal);updateTotal();
});
which leads to the following:

but i cannot do that across questions.
Is that even possible? I'm kind of stuck. Any comment welcome!