Retrieving values from autocomplete form element

Retrieving values from autocomplete form element

by Michael Woods -
Number of replies: 0
Gambar Core developers

Hi there,

A bit of a newbie question.

I've successfully got an autocomplete element displaying and working on a form (using the forms api), but I'm not sure how to get the saved values on submit.

With other elements, you simple do:

$stored_value = $formdata->my_field_name;

But, I'm assuming the values stored for autocomplete field are an array? Does someone have a simple example of looping through the selected values?

Thanks,
Michael

Average of ratings: -