jquery - VisualSearch.js, Displaying label/value in search box -


I'm using VisualSearch.js.

I was thinking that someone has experience with the library and when choosing from dropdown, there is a way to display 'labels' instead of 'value':

< Img src = "https://i.stack.imgur.com/mriRR.png" alt = "Enter image details here">

Results below:

Enter image details here

Using the following data structure:

 < Code> Account 'Account': Callback (value: '1-Amanda', label: 'Amanda'}, {value: '2-aron', label: 'Aronon'}, {value: '3-Eric ',' 'Eric'}, {value: '4-Jeremy', label: 'jeremy'}, {value: '5-samuel', label: 'Samuel'}, {value: '6-scott' Label: 'Scott'}]); When clicking 'Amanda' I need a selection box to display 'Amanda'. I need to have 'value' to use in the query, so the only thing I am trying to change is that which is displayed in the search box. 

Has anyone else found out where to drag into the code and enter in the search box or there is an option to use that label which I am not currently seeing


Comments