I have two eforms.
One sits in a page (ie: contact us), the other is in a chunk. They both post to the same page (contact us).
+ If you enter information on the contact us page, it will validate, etc on the same page.
+ If you enter information on the sidebar chunk, it will post the action to the contact us page.
However when I submit the form (either one), it will send 2 duplicate email digest reports. This is because both forms have an Eform call with the same formid.
I tried changing the value in my &formid= call in my sidebar chunk version of the form, but this causes the form never to validate.
Is there a way of having multiple eforms, that do the same job, post to the same page, validate and post only 1 message only?
// Sidebar eform call
[!eForm? &formid=`nl_signupform` &subject=`Newsletter Sign-up` &sendirect=`1` &from=`[email protected]` &tpl=`Sidebar_Newsletter_Chunk` &report=`xContactFormReport` &protectSubmit=`0` &thankyou=`` &goto=`11` &usethankyou=`0` !]
// Sidebar HTML form (note that the action is a page, so it should not send to the same page)
<form class="nl_subscribe" method="post" action="/[~11~]" name="xForm">
<input type="hidden" name="formid" value="nl_signupform" />
<p>
<input class="searchBox" id="name" name="name" type="text" value="Name" eform="Your Name::1" /><br />
<input class="searchBox" id="email" name="email" type="text" value="E-mail" eform="Your Email Address:email:1" />
</p>
<p>
<input type="submit" />
</p>
</form>
| Edit.
I think I’ve fixed it now.
What I did was to remove the second eform call and simply called the HTML form, it sent the details to the other page; and I didn’t get duplicate emails.
Sorry for the fuss.