[Lift] Re: AutoComplete, but optional
On Thu, Oct 29, 2009 at 5:10 PM, Trav wrote: > > My goal is to use auto complete for "suggested" text box values. > Unfortunately, when using the AutoComplete wiget, the onsubmit > function receives an empty string if a value is not selected from the > drop down. > > Is there any way around this? > Please open a ticket for this issue at http://github.com/dpp/liftweb/issues > > thanks, > -Trav > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: AutoComplete, but optional
My solution was to copy and paste the AutoComplete code and remove the use of the hidden field. The hidden field was what was being used as the form value and it was only updated when the value typed and/or selected was one of the autocomplete values. Removing the hidden field still allows the jquery autocomplete functionality of selecting and formatting, however if someone didn't want to use of the the autocomplete values, they could type something different and it would be submitted normally with the form. On Oct 29, 7:10 pm, Trav wrote: > My goal is to use auto complete for "suggested" text box values. > Unfortunately, when using the AutoComplete wiget, the onsubmit > function receives an empty string if a value is not selected from the > drop down. > > Is there any way around this? > > thanks, > -Trav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---