# How to use two submit tag with form\_remote\_tag

**URL:** <https://www.ruby-forum.com/t/how-to-use-two-submit-tag-with-form-remote-tag/158470>\
**Category:** Ruby\
**Created:** [January 23, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/how-to-use-two-submit-tag-with-form-remote-tag/158470 "2009-01-23T18:06:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sauravsuman012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Post date:** [January 23, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/how-to-use-two-submit-tag-with-form-remote-tag/158470/1 "2009-01-23T18:06:16Z")

</div>

Hi all ,  
can we use two submit tag with form\_remote\_tag . If yes then what is the  
solution.  
Please let me help.

---

<div class="post-metadata">

**Author:** ![sauravsuman012](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a5b964/32.png) [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Post date:** [January 23, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/how-to-use-two-submit-tag-with-form-remote-tag/158470/2 "2009-01-23T20:22:51Z")

</div>

Kumar S. wrote:

> can we use two submit tag with form\_remote\_tag . If yes then what is the  
> solution.

This is a Rails question - please switch to the Google Rails Task forum  
for  
better answers.

The solution is one of the buttons is really a button\_to\_function call,  
with the  
function set to remote\_function. The :with =\> arguments on that will be  
Form.serialize. That’s enough to get you Googling again!
