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.
Hi,
Do you have @Html.Kentico().PageBuilderScripts() rendered on your page according to the documentation? I had a similar problem and this one helped.
Yes, that was the problem. Many thanks for your reply!
Please, sign in to be able to submit a new answer.