Forum: Ruby on Rails JavaScript validation and form_for

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

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

    <% 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?

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