Hi All,
I am new to Qualtrics and need help with below:
I want the %payout below populate based on if condition in the rating column. So rating column has 4 options and based on live changes on option selected, % payout should be a value. So essentially something like below:
If
I am not too well versed with JavaScript. Thank you for all the help
Solved
Rea Time Calculation using Javascript
Best answer by him9592
The below code works:
Qualtrics.SurveyEngine.addOnReady(function()
{
document.getElementById('QR~QID1#1~1').onchange = function(){
var obj1 = document.getElementById('QR~QID1#1~1').value;
if(obj1 == 1){
document.getElementById('QR~QID1#3~1~1~TEXT').value = "0%";
}
else if(obj1 == 2){
document.getElementById('QR~QID1#3~1~1~TEXT').value = "75%";
}
else if(obj1 == 3){
document.getElementById('QR~QID1#3~1~1~TEXT').value = "100%";
}
else if(obj1 == 4){
document.getElementById('QR~QID1#3~1~1~TEXT').value = "130%";
}
else {
document.getElementById('QR~QID1#3~1~1~TEXT').value = "0%";}
}
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
