Set select value with javascript - Mendix Forum

Set select value with javascript

0

Hi all

I'd like a really simple solution to convert select elements to autocomplete text boxes so that i users can search a list of about 45 enumeration values easily. I've implemented selectToAutocomplete (https://github.com/JamieAppleseed/selectToAutocomplete/) but I have come across a problem that using vanilla javascript (element.value) or jQuery(element.val()) to set the correct option does not trigger mendix's event listeners. I can see someone else had the same issue (https://forum.mendixcloud.com/link/questions/9294) but the solution there is not relevant to my situation as I want this plugin library, not a button, to set the value.

The autocomplete widget in the app store is complete overkill for my needs as i just want to search on an enumeration attribute, not set up extra data objects

Any ideas?

asked
0 answers