Smartforms Close Window rule leaves the blank window in IE.

  • 7 January 2017
  • 0 replies
  • 1 view

Badge +7


 

Symptoms


Calling the close browser window rule/functionality closes the form but leaves the empty window. Attached the screenshots. Please let me know how to fix this this.
 

Diagnoses


N/A
 

Resolution

This is a known issue.
One possible workaround is create a Literal, Hidden Data Label control on your view/form, and when you wish to close the window, create a Transfer Data rule that transfers the following script into the Data Label control:

<script>window.open('', '_self', '') window.close()</script>

This script opens a blank window on the current page and then closes it.

It turns out that the reason the script does not work on chrome is due to the browser behavior, please see the following post online:
http://stackoverflow.com/questions/19761241/window-close-and-self-close-do-not-close-the-window-in-chrome
https://forums.asp.net/t/2023813.aspx?Jquery+window+close+not+working
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-apps/vnRRgPhEXyc
https://bugs.chromium.org/p/chromium/issues/detail?id=407507

"You can't close the browser windows using javascripts unless you open it using window.open() method for chrome".

Here is one workaround you can try, https://jeffclayton.wordpress.com/2015/02/13/javascript-window-close-method-that-still-works/

As noted before, we have open a bug regarding this issue.




 

0 replies

Be the first to reply!

Reply