Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Receiving errors while redirecting user after form submission

Vote:
 

Hi everyone, 

I need to show an online form on every page of my site. After the user submits the form, I want to redirect them to another page URL. 

On the home page, I add a ContentArea property and add a form to the ContentArea. 

On the _Root page, I use the Html.DisplayFor to render the ContentArea property.

When I go to the home page, I can see my form created:

However, if I submit the form, I'm receiving the following error:

I'm using the default redirection setup from Episerver Form. The error disappears if I remove the redirection URL from the form settings.

Also, if I move the Html.DisplayFor from the _Root layout to the Home view, I don't receive any error after submitting the forms. However, I don't want to repeat it on every view but I want to add it to the Root layout.

Has anyone experienced the same issue and how did you fix it?

Thanks,

Thai

#195043
Edited, Jul 12, 2018 5:51
Vote:
 

This sound like a bug to me, please report it to support@episerver.com.

#195045
Jul 12, 2018 7:53
Vote:
 

Thank you Henrik. I've logged it to support. 

#195046
Jul 12, 2018 8:01
Vote:
 

What version of CMS are you using?

https://world.episerver.com/support/Bug-list/bug/119272

#195248
Jul 18, 2018 16:10
* 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.