[Pro] Send Form Action with Multiple Forms

Is it possible to have two separate and independent forms on the same page using the Send Form Action and be able to use them one at a time? I would like the user to be able to send only one of the forms.
Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Yes. Apply the sendform action to the containing Div of each form.

ie html container and inside each form element for form1 repeat with another html container that contains form items for form 2

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Dave,

There was a time when the advice was to add the Send Form to a Page, and then did you have to use the Multiple form action also?

Is this no longer relevant please?

thx

John


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

There was a time when the advice was to add the Send Form to a Page,

SendForm hasn’t been around as long as the PHP Feedback Form action and brought some improvements.

Both actions can be applied as Item or Page actions depending on what else is going on in the page.

The Multiple form action is often used when you have a Search field (or similar) on there as well.

Difficult to be specific without knowing more about your particular use case.

The problem with applying the action as a Page action is that it will wrap the whole Page in Form Tags - not what you want if there is more than one Form on the page. And remember there are lots of things out there like Search boxes, Buy Buttons etc. that are Form items.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Dave,

OK, Thanks for the clarification

John


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Thanks for the help. I tried Dave’s suggestion and I must have done something incorrectly. Here’s what I get; after filing out one of the forms and hitting submit it asks me to complete the other form and after doing so and hitting submit for the second form it sends the second form, only.

http://thenextstepfor.me/contactcopy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Here’s what I get; after filing out one of the forms and hitting submit it asks me to complete the other form and after doing so and hitting submit for the second form it sends the second form, only.

I think because you have set all the fields as ‘required’ it is not differentiating between the 2 forms.

Try it without the required attribute.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

That depends on how you have applied the validation. If there are truly two forms on the page, and each of them is using HTML5 validation, then this should not happen. But if you have applied a form validation Action to the page, I can easily imagine it working this way. I don’t know if the Validation Action can be applied to sub-page forms at all.

Walter

On Feb 14, 2016, at 3:15 PM, DeltaDave email@hidden wrote:

Here’s what I get; after filing out one of the forms and hitting submit it asks me to complete the other form and after doing so and hitting submit for the second form it sends the second form, only.

I think because you have set all the fields as ‘required’ it is not differentiating between the 2 forms.

Try it without the required attribute.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options