How to use custom data?

Created on 2 September 2011, about 13 years ago
Updated 15 September 2024, 2 months ago

Is it possible to use custom data with this module? I took a quick look but I didn't see an obvious way. See the demo here:

http://jqueryui.com/demos/autocomplete/#custom-data

What I want to create is a text field into which people can type the name of a store. My PHP AJAX callback will return an array like the 'projects' array at the link. Only the label will be put into the text field, and when the user selects an item from the list I'll use the other data associated with that label (in the example, 'desc' and 'icon') to fill out other text fields. I'm aware of other ways to do that, but doing it in the way shown in that example would be best.

I've already spent some time moving http://drupal.org/project/autocomplete_element to D7 for my own use (not as part of that project), but if this module can use custom data that might be better.

Also, unlike autocomplete_element, it doesn't look like this module can send extra data to the backend; it appears to only send the search string the user entered. I'm aware of ways around that too, but it'd be nice to find an all-in-one solution.

✨ Feature request
Status

Closed: outdated

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States TolstoyDotCom L.A.

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024