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);
};
});
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
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.