I want to show my respondents a website via hyperlink and then ask them some questions about this website. I want to make sure that they followed my instructions and clicked on that link.
How to do this?
I wanted to do it like this guy:
https://www.qualtrics.com/community/discussion/comment/28646#Comment_28646So, he uses JS to set embedded data, wether or not they clicked on his link. I used his code to do the same and I defined the embedded data field in the survey flow but it does't work. The field for the embedded data just stays empty.
How can I solve this problem?
Create embedded data to control wether respondents followed instructions
Best answer by SurajK
Hi,
Use the below JS code, this will disable the Nextbutton until the respondent click on the hyperlink. If they click on hyperlink then the next button will be enabled.
Make sure you create the "LinkClicked" embedded variable at the stat in survey flow.
Qualtrics.SurveyEngine.addOnReady(function()
{
jQuery('#NextButton').attr('disabled',true)
var cnt=0;
jQuery('a').click(function(){
cnt++
Qualtrics.SurveyEngine.setEmbeddedData("LinkClicked",cnt);
jQuery('#NextButton').attr('disabled',false)
});
});
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.
