How to add a custom button control to save a form and how to redirect a form to a specific page or to the source URL?
Last Update: June 22, 2018
Here are the steps on how to redirect a form to a specific page or to the source URL:
- Open the form in
design mode.
- Add new Button control on the form workspace design area with the following properties:

ID: btnSave
Caption: Save - Select the btnSave control
- In the
Rules pane, click on the Add icon to add a new rule, the
Rule Manager dialog will open.

- Follow the following steps to add a new rule to the control:
A. Change the
Rule Name as desired.
B. Change the
Rule Type to Action.
C. Keep the
Event Type onClick.
D. In the
Action section,type the following script:
1)To save the form and return to the source page: saveForm() // saveForm() is a function.
2)To save the form and redirect the page to a specific URL "i.e. Google page": saveWithRedirect(‘http://www.google.com’) // saveWithRedirect () is a function.
E. Click on the
Save button to save the rule.
Note: You can use
Assistance Panel to help you adding functions and related parameters, form variables and form controls to
Conditions and/or
Actions sections. - Test the form by clicking on the
Preview button in the
View group.
Related Resources:
These resources may not reflect the same exact case steps.
https://www.youtube.com/embed/IvR3GsddXhs