Auto-complete field requires 2 letters to be entered before results are shown
okeedoak - May 2, 2008 - 19:01
| Project: | Multireference CCK field |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | steve.m |
| Status: | needs review |
Jump to:
Description
This really isn't a bug so much as a point of inconsistency with the standard CCK user reference auto-complete behavior. In a normal CCK auto-complete text field only one letter is required before suggestions are returned. In a Multi Reference auto-complete field however, two letters are required before results are returned. After entering one letter the animation begins but no results are returned.
If two letters are the correct trigger then the animation shouldn't begin until the second letter is entered.

#1
This is true. It has always bugged me that form fields begin autocompleting from the first letter. But I'll change it to conform to standard practice.
#2
Thanks.
On a related topic: Why is it that node reference auto-complete fields find matches based on letters located ANYWHERE in a node title but user reference fields only find results for users based on the BEGINNING letters of their username? The standard CCK user and node references have the same behavior.
#3
I can't replicate the inconsistent autocomplete behaviour you describe. The code is the same in both cases, matching the beginning of the item.
#4
I changed the autocomplete function to behave as expected. The changes will show up in the -dev build. It only gets built nightly, so check it out sometime tomorrow.