I have made an autocomplete i need validations please have a look.

abhisek_sharma_abhi
abhisek_sharma_abhi Gurgaon,IndiaCommunity Member - Trial User Qubie ✭
edited September 2020 in Custom Code

I have used this code for autocomplete but i need to implement that like i someone fill anyother Flavour that is not in autocomplete so it will show an error that Please correct. Please Reply ASAP i needed to implement asap. and clients are also waiting


Qualtrics.SurveyEngine.addOnload(function()

{

/*Place your JavaScript here to run when the page loads*/


});


Qualtrics.SurveyEngine.addOnReady(function()

{

var textOptions = [

"Burger","Choclate","Candy","Pie Cake","Vannila","Pineapple"

];

jQuery('.InputText').autocomplete({source:textOptions});


});


Qualtrics.SurveyEngine.addOnUnload(function()

{

/*Place your JavaScript here to run when the page is unloaded*/


});


Thanks :)