Crow Canyon Software Forum

Forum Navigation
Please or Register to create posts and topics.

Redirect on Cancel Button

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

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.