Hi,
When we use the dependent drill down which consists of multiple dropdowns where the second dropdown is populated with a list of options based on the option selected in the first dropdown. I am able to set the first blank option as 'Select' but I wasn't able to do it for the 2nd and 3rd dropdowns which end up showing a blank option
Here is my code snippet which I used to set the blank options in the dropdowns
{
var selects = jQuery("#"+this.questionId+" select");
console.log("my selects", selects);
selects.eq(0).find("option:eq(0)").text("Select").attr("selected",true);
selects.eq(1).find("option:eq(0)").text("Select").attr("selected",true);
selects.eq(2).find("option:eq(0)").text("Select").attr("selected",true);
}
Setting default values in a question with multiple dropdowns or a drilldown
Best answer by Diviz
Maybe I am not explaining it properly I think. Let me try to put it this way.
I have multiple dropdowns/a drill-down the first dropdown/select shows me a list of options obviously the first option in the first select is blank instead of blank I added some text "Select" like below
{
var selects = jQuery("#"+this.questionId+" select");
console.log("my selects", selects);
selects.eq(0).find("option:eq(0)").text("Select").attr("selected",true);
}
then in the second dropdown/select which also has a list of values which get enabled after an option is selected from the first select. Users can select any option from this list but here also the first option is blank. So instead of that, I wanted to show "Select" text similar to what I have done on the first select/dropdown.
So I thought the below code would set that text
{
var selects = jQuery("#"+this.questionId+" select");
console.log("my selects", selects);
//below line sets "select" text for blank option
selects.eq(0).find("option:eq(0)").text("Select").attr("selected",true);
//This line is not able to set the "Select" text in place of blank option when it gets enabled after //selecting a option from the first select
selects.eq(1).find("option:eq(0)").text("Select").attr("selected",true);
}
Note: The second select doesn't set a value instead it shows a list of options when an option was selected from the first select. However, the list that it shows contains a blank option instead of "Select" text
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.
