Scandal
Well-known member
Let's say we have a custom user field (single line text box) and an array of possible values ['dog', 'cat', 'elephant'] (haha back to primary school).
How could I make the custom user field to show an autocomplete functionality?
I mean: once I type do, it will show dog that can be selected. If I type el, it wil show elephant and so on.
I thought that it can be via the PHP Callback
![Screenshot 2022-10-16 at 09-26-15 Edit field Your College XenForo - Admin control panel.webp Screenshot 2022-10-16 at 09-26-15 Edit field Your College XenForo - Admin control panel.webp](https://xenforo.com/community/data/attachments/274/274310-f180e0c21d0361d41359f407547a2461.jpg?hash=8YDgwh0DYd)
But I can't find any example on the XF folder or other custom addons to take it as base/ example.
Any idea? I need just a small example.
How could I make the custom user field to show an autocomplete functionality?
I mean: once I type do, it will show dog that can be selected. If I type el, it wil show elephant and so on.
I thought that it can be via the PHP Callback
![Screenshot 2022-10-16 at 09-26-15 Edit field Your College XenForo - Admin control panel.webp Screenshot 2022-10-16 at 09-26-15 Edit field Your College XenForo - Admin control panel.webp](https://xenforo.com/community/data/attachments/274/274310-f180e0c21d0361d41359f407547a2461.jpg?hash=8YDgwh0DYd)
But I can't find any example on the XF folder or other custom addons to take it as base/ example.
Any idea? I need just a small example.