I know the only way to do this would be by using JavaScript so I tried the below but it is not working:
function setQuestionString(number, str){
var question = document.getElementById("QR~QID" + number);
question.value = str;
}
var registration_total = "${q://QID9/ChoiceTextEntryValue/1/1}";
var reg_total = parseInt(registration_total, 10);
var registration_a = "${q://QID9/ChoiceTextEntryValue/1/2}";
var a = parseInt(registration_a, 10);
var registration_b = "${q://QID9/ChoiceTextEntryValue/1/3}";
var b = parseInt(registration_b, 10);
var registration_c = "${q://QID9/ChoiceTextEntryValue/1/4}";
var c = parseInt(registration_c, 10);
var i= 0;
reg_total = a + b + c;
registration_total = reg_total.toString();
while (i<12){
setQuestionString(9, "registration_total");
}Sum up fields in a matrix table
I know the only way to do this would be by using JavaScript so I tried the below but it is not working:
function setQuestionString(number, str){
var question = document.getElementById("QR~QID" + number);
question.value = str;
}
var registration_total = "${q://QID9/ChoiceTextEntryValue/1/1}";
var reg_total = parseInt(registration_total, 10);
var registration_a = "${q://QID9/ChoiceTextEntryValue/1/2}";
var a = parseInt(registration_a, 10);
var registration_b = "${q://QID9/ChoiceTextEntryValue/1/3}";
var b = parseInt(registration_b, 10);
var registration_c = "${q://QID9/ChoiceTextEntryValue/1/4}";
var c = parseInt(registration_c, 10);
var i= 0;
reg_total = a + b + c;
registration_total = reg_total.toString();
while (i<12){
setQuestionString(9, "registration_total");
}Best answer by cflasrado18
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
