Hello
Hope everyone is well.
In a survey question I ask for a URL.
The URL will always end with 8 digits, for example...
/12345678How can I pipe just the 8 digits into a forthcoming question in the same survey.
Thanks :) 🤞
Hello
Hope everyone is well.
In a survey question I ask for a URL.
The URL will always end with 8 digits, for example...
/12345678How can I pipe just the 8 digits into a forthcoming question in the same survey.
Thanks :) 🤞
Best answer by ahmedA
Qualtrics.SurveyEngine.addOnReady(function () {
const quest = this;
const qc = quest.getQuestionContainer();
const inputBox = qc.querySelector(".InputText");
inputBox.oninput = function (ev) {
const text = ev.target.value;
const last8 = text.slice(text.length - 8);
Qualtrics.SurveyEngine.setEmbeddedData("last8", last8);
};
});
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.