Forum: Ruby on Rails Update multiple fields in a form on change event

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.
mdamonhill (Guest)
on 2005-11-17 15:13
(Received via mailing list)
Good day.

I am going to attempt this problem I am having from another angle seeing
either I am doing something so stupid that no one wants to comment on
it, or
because I am just so lost that no one has seen or done things this way

I am simply wanting to update multiple fields of a form after one
event occurs.

I am currently using multiple observe_field calls on the same input_id,
however, I get a too much recursion error in the javascript when this is
I would like to use the update_element_function, but it appears to me to
only work on submission of the form, as the action in the element
says onsubmit().
I need the form to update once the user makes a selection from a drop
list and then populate values in 3+ other fields.

Has anyone done this before?
Is this not common practice in javascript and with forms?

This topic is locked and can not be replied to.