javascript to pipe in text from another question | XM Community
Skip to main content
Question

javascript to pipe in text from another question


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.

0 replies

Be the first to reply!

Leave a Reply