Kentico 12 MVC Forms submit not working

Al Burns asked on August 20, 2019 17:31

Hi. I have created a simple form in the Forms application with a submit action to redirect to a thankyou page in the site - URL set as http://mysite.co.uk/thank-you. I have also enabled PageBuilder in my startup code.

The form is added to my view page via the Form widget and displays correctly. However, when I click submit it redirects to the following URL and just displays the json object:

http://mysite.co.uk/kentico.pagebuilder/widgets/en-gb/kenticoformwidget/formsubmit?formName=ExampleForm&prefix=form-ExampleForm-0e55

{"redirectTo":"http://mysite.co.uk/widget-testing/forms/thank-you"}

I cannot see from the documentation anything additional that I need to do. Can anyone assist me with where this has gone wrong?

Many thanks.

Correct Answer

Dmitry Bastron answered on August 20, 2019 17:37

Hi,

Do you have @Html.Kentico().PageBuilderScripts() rendered on your page according to the documentation? I had a similar problem and this one helped.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Al Burns answered on August 21, 2019 11:38

Yes, that was the problem. Many thanks for your reply!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.