Hi @halindra, if I understand you correctly, you’re wanting the hidden value field to fill in with the typed value as the user types?
I’ve needed this and other more advanced features of the autocomplete field and off the top of my head I can think of two different ways to accomplish this.
Unfortunately I’m about to be driving for the next 7 hours and am on my phone so I can’t get into too much detail but one way would be to use jQuery and the other would be to build your own autocomplete field using various built in Wappler elements.
An example of jQuery would be something like
jQuery(‘body’).on(‘keydown’, ‘#id-of-visible-field’, function(){
jQuery(‘#id-of-hidden-field’).val(jQuery(this).val());
});
I chose to build my own autocomplete using a text field for the visible and hidden fields and a table that repeats a server connect query inside a collapse element. When the user starts to type in the visible field the collapse opens, the server connect filters by the visible field showing the results inside the collapse table. I then use the dynamic events to make the magic happen such as on keydown of the visible field, set the value of the hidden field to the value of the visible field, on key up with a tab modifier the value will be set to the first record in the list, on click of the row set the visible field to a column from the query, set the hidden field to a column from the query etc and so forth.
Hope that all makes sense. Again I’m on the road and can’t get on my computer to give a better example. I’m just trying to type all this from memory on my phone.