Re: One form, two buttons

7 views
Skip to first unread message

Patrick Steele

unread,
May 25, 2013, 9:54:34 AM5/25/13
to castle-pro...@googlegroups.com
Just set up each button to run a different function.  Each function would set the form's "action" and submit the form.  Something like this (function only):

function send1() {
    $('#form1').attr('action', '/item/page1');
    $('#form1').submit();
}

etc...




On Fri, May 24, 2013 at 4:45 PM, Luciano Pereira <lucianop...@gmail.com> wrote:
How can I create a view form with two "submit" buttons? Each one calling a different method from the controller?

Thank you!

--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castle-project-u...@googlegroups.com.
To post to this group, send email to castle-pro...@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages