-
- 4,149 Posts
You can put the form wherever you want. FormIt will find your form by the &submitVar property, which you can specify. So if you have multiple forms, just put the name of an input or submit button in the &submitVar property, and FormIt will only run when form submissions are sent from that form.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
Quote from: wilecoyte78 at Aug 06, 2010, 02:26 PM
On the Documentation here http://svn.modxcms.com/docs/display/ADDON/FormIt
It doesn’t actually state where you should put the form inside a chunk, snippet, or directly on the page.
I need to know where to put the actual form and how to call the form because I want to do multiple forms on a page.
At first I was thrown by this as well, but if you browse to the end of the documentation you’ll find an awesome working example page:
http://svn.modxcms.com/docs/display/ADDON/FormIt.Example+1+-+Contact+Page
Coming from an eForm background I was expecting to have to pass a chunk of some kind. However, FormIt only seems to care about the form once it has been POSTed.
-
- 4,149 Posts
Correct; FormIt is only a form processing snippet - it does not touch your form code. It only interprets it.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
-
- 24,544 Posts
The same thing happened to me, although it’s truly obvious once you think of it.
Maybe a note saying, "Put the snippet tag on the same page as your form" would help other idiots like me.
-
- 35 Posts
Thank you for all your help
-
- 24,544 Posts
Quote from: anso at Aug 07, 2010, 09:15 AM
From the RTFM (http://rtfm.modx.com/display/ADDON/FormIt)
"Simply place the FormIt snippet call into the Resource that contains the form you want to use."
Is not clear enough ?
Clear enough, but apparently not salient enough for some of us.