Autocomplete - preloading text

Hi,

I’m trying to preload text on autocomplete component, it should work like this:

A user starts to type and if it drops a sugggestion then he selects it and id is saved, BUT if there are no selections then the user is allower to type a free text that is saved as a text and it seems to me that either it’s a hard limit of autocomplete’s component that it’s not possible to preload this text (without any ID) to autocomplete field or I’m not smart enaught to figure this out :smiley: anyone can help with this ?

Component saves values to DATASTORE and preloads them on page load.

code:

etc. payload: specialty_id":null,"specialty_text":"testtext", I cannot find a way to preload to autocomplete field "testtext" from this exhample. Preloading with specialty_id works just fine. Any thougts and if it’s a hard limit of autocomplete component maybe any of you have any other suggestion (I was thinking maybe to build another DB just to store specialty_text and get specialty_text_id from there only for this as a walkaround etc?)?