Autocomplete
Archived from the Xataface Users forum.
andperry — Fri Feb 27, 2009 12:56 pm
When using an autocomplete field (applies to both the autocomplete and yui_autocomplete widget types), I have noticed that if you type in a value not in the vocabulary list, then when the record has been saved, the field subsequently shows as blank on the Xataface interface (even though it is correct in the underlying table).
I wondered if there is any way round this as I have a situation where 95% of values come from a list of standard choices, but there are the odd one-offs that I don’t particularly want to have to add as clutter to the vocabulary list.
Thanks,
Andrew.
shannah — Fri Feb 27, 2009 1:56 pm
Thanks. This is a good point. I have corrected this in SVN. If you replace your Dataface/Record.php file with the one at http://weblite.ca/svn/dataface/core/tru … Record.php it should fix this issue.
For autocomplete and yui_autocomplete widgets this one fix will work fine. If you are using checkbox, select, or advmultiselect I have made changes to the Dataface/FormTool/* files to support values that are not part of the vocabulary. These changes will all be incorporated in to the next release 1.1.6.
-Steve
andperry — Sat Feb 28, 2009 12:43 am
Hi Steve,
Many thanks for the fix. It works OK.
Andrew.