Need to have some advanced/modular form fields, any ideas?
Posted: Wed Apr 25, 2007 12:33 am
Hey guys, I'm working on a rather large site for a client right now, and they're going to require massive amounts of forms. At least 20+ different contact forms. Instead of declaring the same fields over and over again in each form, I was wondering if anyone knew of a way to have modular partial forms from the form builder.
Let me try to explain that better.
You create a form, and give it the name of "Contact information". Inside of that form you would put first name, last name, address, phone, etc.
Then maybe in another form module named say "Comments" you might have subject and comment inputs.
Then in your page you could declare both of these forms, and it would show both on the page, but only one input button. Ideally it would also combine the information into one e-mail.
Example call from page:
{form_start}
{cms_module module='FormBuilder' form='contact-information'}
{cms_module module='FormBuilder' form='comments'}
{submit_button}
{form_end}
Any ideas? Thanks!
Let me try to explain that better.
You create a form, and give it the name of "Contact information". Inside of that form you would put first name, last name, address, phone, etc.
Then maybe in another form module named say "Comments" you might have subject and comment inputs.
Then in your page you could declare both of these forms, and it would show both on the page, but only one input button. Ideally it would also combine the information into one e-mail.
Example call from page:
{form_start}
{cms_module module='FormBuilder' form='contact-information'}
{cms_module module='FormBuilder' form='comments'}
{submit_button}
{form_end}
Any ideas? Thanks!