- Mon Sep 24, 2018 9:17 am
#816239
Hello,
I want to implement autocomplete suggestions on my Dropdown field which get values from SQL database.
I am trying to use external JS librabry like Select2.
I copied JS and CSS links of select2 library but UI just keeps on rendering and throws error
How can we implement autocomplete in dropdown fields by select2 or any other method?
"Suggestion" web control does give search functionality but it does not shows values unless you type search string
I want to implement autocomplete suggestions on my Dropdown field which get values from SQL database.
I am trying to use external JS librabry like Select2.
I copied JS and CSS links of select2 library but UI just keeps on rendering and throws error
Code: Select all
I also copied those files in public_html folder and copied its url into external library and also checked the accessibility to those files from browser like
uncaught TypeError: $(...).getControl(...).select2 is not a function
http://{SERVER-ADDRESS}/{FILENAME.EXT}I also tried
Code: Select all
but it throws same error.$('#category').getControl().find("select").select2()
How can we implement autocomplete in dropdown fields by select2 or any other method?
"Suggestion" web control does give search functionality but it does not shows values unless you type search string