Autocomplete text / value question?

Hello All,

Not sure if you anyone can help.

I have a conundrum accessing the text that is input into an autocomplete field where the value field is set to an id from a database lookup.

What I want to be able to do -
User enters text into the autocomplete - if a record matches they click on it and it loads the appropriate database id into the value (this works as expected).

If there is no match the user clicks the no results click and i want to grab the text they have entered to use elsewhere.

Is this possible?
Many thanks for your time :+1:

Hello,

There's a No Result Click dynamic event available for Auto Complete:

Screenshot 2025-04-02 at 10.06.05

In this event you can then call some action, for example - call an insert record, set a value etc. and there you can find the entered value under the Event in the data picker:

so you can pick that value.

Thanks for the quick response I though it would be as simple as this.
I was being a bit blind, excellent service as ever!.
Thanks

1 Like

Nothing seems to happen when I use that data binding?
I've tried on my current input box and made a new one to test (using 2 different datasources ) but the $event.value binding doesn't seem to return any value?

Any ideas?

(thanks again)

Seems there's some issue with the event, @patrick will check this

I checked the component and it does seem that the event indeed doesn't have any value set. The event seems to trigger correctly. Will post an update here with the fix.

Here the update that should fix the event, $event.value should now contain the input value.

dmxAutocomplete.zip (7.6 KB)

1 Like

Fixed in Wappler 7 beta 25