How do you use the backToPrevForm()
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hello,
If you wish to redirect users to another form after they submit the current one, please, follow instructions from our article:
http://spform.com/forms-designer- ... submission
To redirect users to the previously opened form when they click 'Cancel' button, use the following code:
If you wish to redirect users to another form after they submit the current one, please, follow instructions from our article:
http://spform.com/forms-designer- ... submission
To redirect users to the previously opened form when they click 'Cancel' button, use the following code:
Code: Select all
var cancel = fd.cancel().get(0);
cancel.onclick = function() {
backToPrevForm();
return false;
}
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
To redirect users to the specific form, please, use fd.openForm(). If you wish to return users to the previously opened form, you have to use fd.backToPrevForm(). This function works only if the current form has been opened with fd.openForm(). Please, read our article to get more information:
http://spform.com/forms-designer- ... rint-forms
http://spform.com/forms-designer- ... rint-forms
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests