Page 1 of 1
How do you use the backToPrevForm()
Posted: 28 Oct 2013
by MES5464
How do you use the backToPrevForm() in the save/submit and the cancel button?
Re: How do you use the backToPrevForm()
Posted: 30 Oct 2013
by Dmitry Kozlov
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:
Code: Select all
var cancel = fd.cancel().get(0);
cancel.onclick = function() {
backToPrevForm();
return false;
}
Re: How do you use the backToPrevForm()
Posted: 30 Oct 2013
by MES5464
Do you have to open a form with fd.openForm() for fd.backToPrevForm() to work?
Re: How do you use the backToPrevForm()
Posted: 01 Nov 2013
by Dmitry Kozlov
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