Crow Canyon Software Forum
Redirect on Cancel Button
Quote from skigeek on March 7, 2024, 10:46 amI know how to redirect the submit button but what needs to be done for the cancel button. I see that I can create a script action but do not know what to put in it to redirect. Thanks
I know how to redirect the submit button but what needs to be done for the cancel button. I see that I can create a script action but do not know what to put in it to redirect. Thanks
Quote from supportTeam on March 13, 2024, 5:50 pmHi @skigeek,
Please refer to the article below to configure a custom ‘Cancel’ button in the NITRO Forms:
https://www.crowcanyon.help/article/362/#Index2
Please specify below script for the Script Action button so that it acts as default ‘Cancel’ button and redirects to a custom URL.
Script:
$('#btnCancel').trigger('onclick');
window.location.href = "https://contoso.sharepoint.com/sites/IT/Lists/Tickets/AllItems.aspx";
Note: Script Action button will redirect to the specified URL. Please update URL in the above script as needed.
Hi @skigeek,
Please refer to the article below to configure a custom ‘Cancel’ button in the NITRO Forms:
https://www.crowcanyon.help/article/362/#Index2
Please specify below script for the Script Action button so that it acts as default ‘Cancel’ button and redirects to a custom URL.
Script:
$('#btnCancel').trigger('onclick');
window.location.href = "https://contoso.sharepoint.com/sites/IT/Lists/Tickets/AllItems.aspx";
Note: Script Action button will redirect to the specified URL. Please update URL in the above script as needed.