Hi there,
I am trying to work out how to simply close a page with a workflow button. I have tried using the RunJavascript plugin and then pasted the following:
function closeWin() {
myWindow.close();
}
But this does not work.
Any ideas?
Many thanks
Frank
@frankstillone URL Actions Plugin has a close tab function. Might help:
johnny
November 11, 2019, 8:24am
3
I believe you can also get a plugin called TabOpener (TabOpener Plugin | Bubble ) and I believe that it has a close tab workflow option.
Thank you both @lantzgould and @johnny for your suggestions!
Both options seem to work fine however the process (for both options) is interrupted by a pop up that says:
Leave Site?
Changes that you made may not be saved.
Is there a way to bypass this so that the tab simply closes without the user to make another click?
Thanks
Frank
@frankstillone I’m not sure if a plugin does this. But you can use the Javascript method (assuming your looking to use this on a non mobile device.
Run Javascript on the workflow with this:
var windowObject = window.self; windowObject.opener = window.self; windowObject.close();
Editor:
Thanks @lantzgould ,
works perfectly - that’s exactly the behavior I am looking for,
thank you!!
Frank