Solved
Suggestion Array javascript no longer working.
A few years ago, we had Qualtrics help us with developing some custom code to use suggested string search through the use of a suggestion array. For example, respondents will type three or more characters for, say, intended major in college and then a dropdown will show all mentions from a list that contain that string. Respondents would select from the dropdown and the remaining script would add corresponding data fields to placeholder embedded data variables. The script has worked great except in a new project that I'm working with. It has the same exact javascript code from a project that is working correctly, yet now it fails to display a dropdown in the new project. I have the appropriate embedded data fields in my new project (MajCat, MajCode, MajLabel, MajTerm) and I have confirmed that validation rules are properly referenced (entered response must be equal to ${e://Field/MajLabel}). I've copied the script below excluding most of the "data table" information.
I have tried importing the question from a working project, creating the block/question from scratch, and starting from a new project. None seems to work.
Is there anything clear from the script that may make it no longer work with Qualtrics? Am I possibly missing a setting that prevents the dropdown box from showing?
Best answer by TomG
@TerryH,
That pretty much confirms what I was telling you. Go to Look&Feel in the survey where it is working. Then look at the the Header (or maybe the Footer) in html mode (`<>`), there will be a couple of lines where the jQuery UI stylesheet and script are loaded.
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.