Here is a bit of functionality that I would like to have in a form that I am developing:
The user clicks in or tabs to the first Code field, a 3-character text box.
A drop-down list appears next to the first Code field, floating above the other fields on the form. The drop-down list contains account names.
The user selects an account.
The 3-character account code is automatically entered in the first Code field, then the drop-down list disappears.
The user goes to the second Code field.
The drop-down list appears floating next to the second Code field.
After the user selects an account name, the 3-character account code is automatically entered in the second code field and the drop-down list disappears.
At first glance that doesn't seem like that will really do what I want (unless there is some functionality that wasn't apparent in the demo). The Scriptaculous Autocompleter requires that the user start typing something and then they are shown options that match what they've typed. When they select an option, it is entered into the text box.
The situation that I'm dealing with is one in which each option can be rather long (e.g. 25 characters) but there is only room on the form for a short value (3 characters). Also, the user doesn't necessarily know what the options are, so they need to see the options as soon as the text box gets focus.
I'll look at the Scriptaculous Autocompleter to see whether it can be easily modified to do what I want, but I'm still hoping to see something out there that is closer.
Joined: Nov 08, 2001
Make sure that the code is properly formatted. The UBB code tags really screw it up when you copy and paste. You may have extra line breaks and such.