# forms within forms

**URL:** <https://discuss.rubyonrails.org/t/forms-within-forms/14984>\
**Category:** rubyonrails-talk\
**Created:** [June 27, 2007, 4:36pm UTC](https://discuss.rubyonrails.org/t/forms-within-forms/14984 "2007-06-27T16:36:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Walton](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@Bill\_Walton](https://discuss.rubyonrails.org/u/Bill_Walton)\
**Post date:** [June 27, 2007, 4:36pm UTC](https://discuss.rubyonrails.org/t/forms-within-forms/14984/1 "2007-06-27T16:36:35Z")

</div>

Hi Shandy,

Shandy Nantz wrote:

> Simple question...I think.
> 
> Can you use the helper methods to create form\_remote\_tag within one another? I have tried but everytime the page seems to become confused on which form is which.

No. The W3C spec forbids the nesting of forms. You can, however, have more than one form on a page. Depending on what you're trying to accomplish, and as long as you're using Ajax, this can work well. But you'll have to figure out whether or not you're going to allow use of the site by visitors who have JS disabled and, if so, how you're going to provide equivalent functionality to them.

hth, Bill

---

<div class="post-metadata">

**Author:** ![Bob\_Showalter](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@Bob\_Showalter](https://discuss.rubyonrails.org/u/Bob_Showalter)\
**Post date:** [June 27, 2007, 5:13pm UTC](https://discuss.rubyonrails.org/t/forms-within-forms/14984/2 "2007-06-27T17:13:52Z")

</div>

If you are just trying to include fields from multiple objects in your form, have a look at the fields\_for helper.

[http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M000495](http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#M000495)
