Cancel button on Record producer

sidarth
Giga Expert

There is a Cancel button on record producer which appears if we select the "Can cancel" checkbox.

I want the user to be redirected to a certain link when the "Cancel" button has been clicked. So far I have been unable to find from where the code of the cancel button is coming.

Do help me out.

1 ACCEPTED SOLUTION

Yes, window.open with "_parent" option is redirecting to another page.



cancel_button.setAttribute("onclick","window.open('https://www.google.com','_parent');return false;");


View solution in original post

17 REPLIES 17

Try redirecting to external url


Not sure, whether redirection to external URLs is allowed through javascript from client side in SNOW, since it might be a security threat. If you are using chrome, check developer tools -> Console and see any errors appearing?


Cross-origin framing not permitted. Is there any other way to redirect to external url?


try window.open


Yes, window.open with "_parent" option is redirecting to another page.



cancel_button.setAttribute("onclick","window.open('https://www.google.com','_parent');return false;");