Forum: Ruby on Rails Ajax.autocompleter and submission of the form

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
miles.wu (Guest)
on 2005-11-18 00:02
(Received via mailing list)
I have a Ajax.autocompleter text field, which is used for selecting
tags/labels. However, as you can have multiple tags/labels, the user (to
enter apple and fruit as tags) would enter ap, and then use the arrow
to select apple and press enter. But as soon as the user presses enter
form gets submitted with only the one tag of apple.

Is there anyway of turning of the form submission on pressing of the
key, or would I have to turn the text field into a text area, which
care about enters? If I use some javascript to disable form submission,
wouldn't it interfere with the Ajax.autocompleter?


Alan (Guest)
on 2006-11-22 21:24
Just found this posting - I'm running into the exact same problem I want
to solve.
What's the best way to go about it?

This topic is locked and can not be replied to.