How to close tab?

  

I have a form that an anonymous user will have to fill out and when doing the "save" I wanted to make the closing of the automatic tab.


I have already used RunJavaScript and target as ExternalUrl and both with the same code but both do not work.


"Javascript: window.close ()"


Please help me!


Hi Thiago,

I've implemented a way that makes what you want to work. In the Web Screen, go to the JavaScript property and add a function to close the window, e.g.:

function closeScreen() {
    window.close();
}

Then, in the action you just need to add a RunJavaScript action and add the value "closeScreen();"

Does it solve your problem?

Regards,

António Pereira

Hello António Pereira,


no, the soluction dont work :(

 I put the RunJavaScript before the "end" connection, do i nedd change the "end" to "ExternalURL" and put "javasript:closeScreen();" ?

Thiago Schettini Mari wrote:

Hello António Pereira,


no, the soluction dont work :(

 I put the RunJavaScript before the "end" connection, do i nedd change the "end" to "ExternalURL" and put "javasript:closeScreen();" ?

I forgot to tell you that the button "Method" property must be set to "Ajax Submit". I'm also using an End node. (Oml attached)