Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Receiving errors while redirecting user after form submission

$
0
0

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


Viewing all articles
Browse latest Browse all 9076

Trending Articles