I am looking for a way to incorporate autocomplete and suggested responses to two questions on our survey.
The first question is more involved. It uses a matrix table, and the user can either enter text or a code in the different boxes. The codes correlate to the text (for example, 1=red, 2=orange, 3=yellow, etc). We'd like to have the text box autopopulate when a code is entered, or vice versa. Also, we'd like the table to suggest responses based on the text entered For instance, "re" could bring up both "red" and "green". Is this possible?
The second question is a multiple choice with a select box. For this one, we'd like the choices to narrow as the user types. So, in the above example, "re" would leave "red" and "green" but remove "yellow".
We're happy to adjust the question format if there's a better way to achieve this. Thank you for your help.
I think the auto complete is a feature on one of Qualtrics' advanced plan, so you should talk to support about it.
You can use JS libraries like select2 to get this functionality.
ahmedA Thanks for the response! I was able to use Select2 to autocomplete the multiple choice questions using code I found in other threads, but I'm still struggling with the autopopulate issue for the first question. Is it possible to do that with Select2 as well? I'm not finding any code that might work. As we only want this functionality for one question, it doesn't make sense to upgrade to an advanced plan.
Your first question is a little complicated to understand, so without knowing exactly how things are configured, I won't be able to give a definitive answer.
But broadly, select2 doesn't support autopopulate, though you can customize it extensively, and maybe somehow manage to simulate that.
ahmedA I appreciate your help, and sorry for the confusion! Let me try again. For that question, I have two text boxes per row. The customer enters a code in one box and a title in the other. So, for example, the customer currently needs to enter "1" in the first box and "red" in the second box. I'd like them to be able to enter "1" in the first box and have the second box complete automatically, so they don't need to enter the title. Is this possible?
You really don't need select2 for this. Just plain JS. Look up how to enter value in a text box via JS.
But if you're using select2, I think it does have linked boxes as an option. I'm not sure, but go through their docs.
If you aren't able to figure it out. Share the question as a QSF, along with a few dummy ptions. I'll write the script, shouldn't be too complicated.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.