The Verj.io JavaScript API's form
interface includes a form.callForm("mySecondForm")
function that suspends the current event's execution and navigates to the specified
Form. The original Form's state is not lost however.
The original Form can be returned to using the form
interface's returnFromForm()
function that navigates back to the original Form and resumes the suspended event's execution.
The returnFromForm()
function will display an error if used on a Form that has not been navigated to using the callForm()
function. You can avoid this by checking if the Form was called:
if(form.calledForm){
form.returnFromForm();
}