You can have a look at this forum thread
where you can find an explanation and actual code sample on how to create a custom form control that extends the built-in Forms widget.
In the overridden ProcessFromSubmitAction
method, there is a check whether the form action is to redirect to another page or show the successful message.
Based on what you have provided me as an information, I suggest that you can modify the logic there to satisfy your needs. You can use the redirect option for the form from the backend and leave the URL field empty. Then in the code, you can add a simple check whether RedirectPageUrl
is empty and if so, then pass your URL as a parameter to the Redirect method.
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal
and vote to affect the priority of the items