Autocomplete display v value
I have replaced a drop-down box on a form with a text field and added autocomplete. This works fine and when I post the form, the value is saved. However, with a drop-down box I can add a value which is returned by the post, rather than the displayed text.
Is it possible to do this with the autocomplete? I know you can use an array of objects with
label
and
value
properties but this doesn't seem to work in the same way.
Thanks.