Hi Liberio,
Exactly. Here's how it would work.
1. as long as the forms contain the same form_tools_form_id, they'll all post to the same form in Form Tools.
2. In your Form Tools form, add a new field called "Original Form" (or something), then give it a field name of "original_form" and a database column name of "original_form". Then, in each of your forms, add a hidden field like so:
(and just change the value for each, so it uniquely identifies that form). In Form Tools, maybe configure that field to display the forms as a dropdown list.
3. If each form need to redirect to a different URL, add another hidden field that specifies where each to redirect to:
Whenever you include that hidden field, it will override the redirect URL value that you specified in the Form Tools admin.
And you're done! Now all the forms will all be stored in the same table in Form Tools.
Don't worry about the "Form URL" setting in Form Tools: that's only included there for your convenience so you can keep track of where each form exists. In most cases, forms are only found in one place, but sometimes things like this occur. Form Tools won't care that content is being posted from multiple sources.
Hope this helps!
- Ben
Quote:I assume your 'form_tools_form_id' is the same for all your forms on the website, but you can specify only ONE url in your Form Tools form! How this single Form Tools form can be linked to the ones on the website in that case?
Exactly. Here's how it would work.
1. as long as the forms contain the same form_tools_form_id, they'll all post to the same form in Form Tools.
2. In your Form Tools form, add a new field called "Original Form" (or something), then give it a field name of "original_form" and a database column name of "original_form". Then, in each of your forms, add a hidden field like so:
Quote:<input type="hidden" name="form_tools_hidden_form" value="Form #1" />
(and just change the value for each, so it uniquely identifies that form). In Form Tools, maybe configure that field to display the forms as a dropdown list.
3. If each form need to redirect to a different URL, add another hidden field that specifies where each to redirect to:
Quote:<input type="hidden" name="form_tools_redirect_url" value="http://www.yoursite.com/thanks1.html" />
Whenever you include that hidden field, it will override the redirect URL value that you specified in the Form Tools admin.
And you're done! Now all the forms will all be stored in the same table in Form Tools.
Don't worry about the "Form URL" setting in Form Tools: that's only included there for your convenience so you can keep track of where each form exists. In most cases, forms are only found in one place, but sometimes things like this occur. Form Tools won't care that content is being posted from multiple sources.
Hope this helps!
- Ben