# Autofill option in text field component vision

**URL:** <https://forum.inductiveautomation.com/t/autofill-option-in-text-field-component-vision/72684>\
**Category:** Ignition\
**Tags:** ignition81, scripting, vision\
**Created:** [April 20, 2023, 5:40am UTC](https://forum.inductiveautomation.com/t/autofill-option-in-text-field-component-vision/72684 "2023-04-20T05:40:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [April 20, 2023, 7:23am UTC](https://forum.inductiveautomation.com/t/autofill-option-in-text-field-component-vision/72684/4 "2023-04-20T07:23:36Z")

</div>

Come to think of it, I did create something like this before when I was playing around with a multi select dropdown problem here in the forum:

> [@Multiselect dropdown in Vision](https://forum.inductiveautomation.com/t/multiselect-dropdown-in-vision/58749/7):
>
> I found the time to cobble a template example together. Here is a side by side comparison with the multiSelect dropdown on the left and the standard dropdown on the right: The selected indexes, values, and labels are stored in the template's properties as datasets: [image] [image] Below is the template itself. Feel free to download it, import it, and continue development on it until it suits your needs: [multiSelectButton.zip](https://forum.inductiveautomation.com/uploads/short-url/3o5So0DrM4z8PFlxwLppKbSk5kR.zip) (10.1 KB)

As you can see in the video, the template has a predictive text feature. I believe I layered a label underneath the text field, and made the text field background transparent. The predictive label is then populated with scripting on one of the keypress events. It wouldn't be difficult to add a special key condition to the keyReleased or keyPressed event to move the label text into the actual text field.

---

_[View the full topic](https://forum.inductiveautomation.com/t/autofill-option-in-text-field-component-vision/72684)._
