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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
as
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
before.

I am simply wanting to update multiple fields of a form after one
onchange
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
executed.
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
created
says onsubmit().
I need the form to update once the user makes a selection from a drop
down
list and then populate values in 3+ other fields.

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

Thanks,
This topic is locked and can not be replied to.