Close Page Workflow Event

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

1 Like

@frankstillone URL Actions Plugin has a close tab function. Might help:

4 Likes

I believe you can also get a plugin called TabOpener (TabOpener Plugin | Bubble) and I believe that it has a close tab workflow option.

2 Likes

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.

46%20am

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:

6 Likes

Thanks @lantzgould,
works perfectly - that’s exactly the behavior I am looking for,
thank you!!
Frank

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.