Forum: Ruby on Rails JavaScript validation and form_for

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.
Ashley M. (Guest)
on 2007-02-05 15:29
(Received via mailing list)

I have a form I want to prevalidate with a JS function.  This doesn't

    <% form_for(:applicant,
                :condition => "checkCheckBoxes()",
                :url => { :action => "save_details" }) do |applicant| %>
                 <% end %>

:condition doesn't have appear to have any effect unless  I use
form_remote_for (is this right?)

What's the best way to achieve what I want?

This topic is locked and can not be replied to.