Try our conversational search powered by Generative AI!

Xforms - cannot send/store data and have thank you page at the same time


We are using xforms. We used to have problems getting to the Thank you page. Now that's working. However, we have to choose between having the thank you page and get the data stored/sent. What has happened? Why cannot we do both things - have thank you page AND store/send?

Aug 22, 2013 8:45

Both options are possible. Can you share some more info on error / issue description?

Aug 22, 2013 8:54

This should work.

I've set it up in that way in a xform om epi7 locally.

Aug 22, 2013 12:46

Hi, I have the same problem. I seem to have trouble sending form data.

When I create an XForm in Epi 7, I choose to have a thank you/confirmation page after clicking on the submit button. I also choose to get a confirmation email that will be sent after submitting the form.
The result is that I comes to the thank you page, but I dont get any confirmation email. Why?

Do I need to use an event trigger like AfterSubmitPostedData to send email after pressing the submit button? Or is there an easier way to get a confirmation email when using XForms?

Aug 22, 2013 13:39

Actually me and Fredrik has the same issue but it's not the confirmation email (which is for the submitter) we're after really (even though that would be great). We need the data that we've submitted to either be sent in an email to a designated receiver OR have it stored in the Xforms to be picked up. Could anyone send an example of how the code for this is done? We are probably missing something out (especially since we even didn't get the Thank you page to work at all and then found out that code was missing). 

Aug 22, 2013 16:26

If you use Episerver MVC Xform, then I can show my codes to you.

This is my question before:

If you are using webforms,then try this:

Aug 28, 2013 3:39

Super thanks, Martin! I'll check it out.

Aug 28, 2013 9:10

In EPiServer.dll the following code exists in the class-file XFormSuccessActionResult.cs that contributes to the problem.

If the editor have an confirmation page, the Success method isn't invoked.

public override void ExecuteResult(ControllerContext context)
if (base.XForm.PageGuidAfterPost != System.Guid.Empty)
string mappedUrl = this.GetMappedUrl(base.XForm);
if (!string.IsNullOrEmpty(mappedUrl))
base.InvokeAction(context.Controller as Controller, context.HttpContext.Request.Params.get_Item("successAction"));
May 21, 2015 18:11
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.