Hi everyone!
I'm trying to set embedded data so that I pull only the first two characters from drilldown questions using javascript. I'd like to set it on the question itself, using "OnPageSubmit". I found this discussion, but it looks like the code was used on a different question:
https://community.qualtrics.com/XMcommunity/discussion/6601/use-javascript-to-pull-part-of-drill-down-selected-choices-as-embedded-data
I have the javascript code, but am unsure how to pull the actual selection from the drilldown question. For example, for a form field question I've used:
var first = jQuery("#QID2 input[type=text]").eq(0).val();
And for a standard dropdown field, I've used:
var account = jQuery("#QID58 option:selected").text();
I've tried playing with variations of these and haven't come up with anything that works. Any help would be greatly appreciated. Thanks!
Setting embedded data with javascript for a drilldown question using OnPageSubmit
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.
