Hi all, I'm trying to implement a custom autocomplete for a text entry field using javascript but having trouble with how to format it. I have the following code for my text entry question:
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
let textOptions = ["John", "Jimmy", "Jonathon", "Jimbo"]
let $elem = jQuery('.QR-'+this.questionId)
let $elemParent = $elem.parent();
jQuery($elem).autocomplete({
source: textOptions,
minLength:1,
appendTo: $elemParent
});
});
However, when I type "J" into the text box the dropdown menu is cut off seemingly by the Next Button HTML Section. How do I fix this?
Javascript Autocomplete Formatting
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.