This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

close window
#6
You can use this Custom JavaScript to close the window when 1/1/1 value changes:
Code:
$(function(){
  if (typeof grp === 'object') {
    grp.listen('1/1/1', function(obj, state) {
      if (state == 'value') {
          window.location.href = '/closekiosk';
      }
    });
  }
});

Keep in mind that this code might run in case disconnect happens so a better solution is to use Link element with External link mode and External link set to /closekiosk
Reply


Messages In This Thread
close window - by Daponte - 11.02.2019, 07:18
RE: close window - by admin - 11.02.2019, 07:44
RE: close window - by Daponte - 11.02.2019, 07:57
RE: close window - by admin - 11.02.2019, 08:06
RE: close window - by Daponte - 11.02.2019, 08:44
RE: close window - by admin - 11.02.2019, 09:00
RE: close window - by Daponte - 11.02.2019, 09:30
RE: close window - by admin - 11.02.2019, 09:41
RE: close window - by Daponte - 11.02.2019, 09:55
RE: close window - by admin - 11.02.2019, 10:32
RE: close window - by Daponte - 11.02.2019, 10:50
RE: close window - by admin - 11.02.2019, 10:58
RE: close window - by Daponte - 11.02.2019, 11:20
RE: close window - by admin - 11.02.2019, 11:33
RE: close window - by Daponte - 11.02.2019, 11:37
RE: close window - by Daniel - 11.02.2019, 12:08
RE: close window - by Daponte - 11.02.2019, 14:06
RE: close window - by Daniel - 11.02.2019, 14:13
RE: close window - by Joep - 16.11.2019, 15:41

Forum Jump: