ok got it, :condition is available for form_remote_tag also..
thanks,
shishir
On Oct 4, 5:32 pm, Shishir Srivastava
<shishir.srivast...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> Is there a way to allow conditional submission using the
> form_remote_tag. I am trying to prevent form submission if the input
> field in my form is empty.
>
> Since, there is no support for onsubmit in form_remote_tag, I am
> looking for an alternative way to do that.
>
> Returning ''false'' from the :before=somefunc()
doesn''t help either.
>
> Any clues..
>
> TIA
> ~Shishir
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---