Kentico 12 Online Form Custom Redirect URL

David Jones asked on August 7, 2020 22:05

On the online forms we would like to be able to redirect the user to specific pages based on the information that they have entered in the form. Is this possible and if so how?

Your help is greatly appreciated.

Recent Answers


Kadir Ergün answered on August 8, 2020 00:50

Hello David,

You can change in Forms application Image Text

-> Select Form Application -> Select Your Form -> In General Tab. You can change -> After Form is submitted : Redirect to URL

1 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on August 10, 2020 06:12

I am assuming you are using portal engine and the form is placed on a page using a web part. In this case, the best way would be adjusting the code of the web part - in the code you can check what are the values entered by the user and when submitting the form, the code could do the decision and redirection. The example in the Customizing web parts documentation is also using the online form web part - so you can follow those steps and just add your custom logic to the code.
Another idea would be maybe using some bit more complex macro expression in the mentioned "Redirect to URL" setting. This macro would be checking the desired field values and based on that, you will have some "IF-ELSE" statement and logic in the macro expression to do the trick.
If you are using MVC, then you can add some custom code on your MVC app to "listen" to the entered values and then, when submitting the form, do your custom action.
Other than that, there are no settings to do the decision logic based on what values are entered in the form.

0 votesVote for this answer Mark as a Correct answer

Mika Hawkins answered on August 17, 2020 08:25

Hi David, You can try to change the application of the form by following the steps provided below. 1. First select form application 2. Then select your form 3. Then you will see the general tab where you can change and submit your form after which redirect to the URL. Hope this helps... Regards, Mika Hawkins

0 votesVote for this answer Mark as a Correct answer

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