Action to cancel completing a form, currently goes back in the browser
history or attempts to close the browser tab if there is no history.
Example
constoptions = { definition:OneBlinkForm, externalId:'external-id-set-by-developer', } // Only used for relative URLs constpushRelativePath = (path) => { window.location.href = path } // Only used for aboslute URLS constreplaceAbsolutePath = window.location.replace
try { awaitsubmissionService.executeCancelAction(options, { onRedirectToRelativeUrl:pushRelativePath, onRedirectToAbsoluteUrl:replaceAbsolutePath, }) } catch (error) { // Handle error while closing browser tab. // Display message to user to close it manually }
Action to cancel completing a form, currently goes back in the browser history or attempts to close the browser tab if there is no history.
Example