Try our conversational search powered by Generative AI!

XForm - Before submit triggered several times?

Vote:
 

I have made a XFormblock and when the form is posted the BeforeSubmitPostedData is triggered several times. Why is that?

I need to change some values in the form before it submits and also send an extra confirmationemail to the sender.

private void XForm_BeforeSubmitPostedData(object sender, SaveFormDataEventArgs e)
{

.....

}

#81701
Feb 24, 2014 14:59
Vote:
 

Hi Jens

Did you ever solve this?  I am having a similar problem.  I'm using the default EPiServer email notification for a contact-us form, but am getting 2 emails for each submit.  Debugging shows that my BeforeSubmit and AfterSubmit events are each being triggered twice (they are not doing the email send, but are showing that the submit event is firing twice).

Regards,

Edmund

#83274
Mar 28, 2014 12:34
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.