I had used piped in text to prefill a question, but Qualtrics will not update the response if someone changes their answer. Therefore, I need to use Javascript to carry down their answers.
I thought ONE of the following would work (tried something different with city):
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
var city = "${q://QID98/ChoiceTextEntryValue/4}";
var state = "${q://QID98/ChoiceTextEntryValue/5}";
var zipcode = "${q://QID98/ChoiceTextEntryValue/6}";
var citytext = "QR~QID135~1";
document.getElementByID(citytext).value = city;
document.getElementByID("QR~QID135~2~TEXT").value = state;
document.getElementByID("QR~QID135~3~TEXT").value = zipcode;
)};
Without using piping tool, want to take value of QID98_4 and put in QID135_1 and so on.
Be the first to reply!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.