2 Replies Latest reply on Sep 21, 2016 1:36 PM by deninger

    time triggered script


      I'd like to make a script that acts after a certain time limit. As in, I want one Layout to load, and after 45 minutes, the script is triggered (which submits certain global fields & automatically moves the User to a different Layout).


      Is this OnTimer or is there a different route? The info on OnTimer is a little confusing.

        • 1. Re: time triggered script
          David Moyer


          yes, you're on the right track with Install On Timer.

          1 of 1 people found this helpful
          • 2. Re: time triggered script

            Install OnTimer Script [“<script>”; Parameter: <script parameter>; Interval: <number>]


            You might add a script trigger (onLayotEnter) to set the timer. Remember that the interval for the OnTimer function is SECONDS, so you would need 45*60 = 2700 seconds


            The script that this OnTimer calls would then do your dirty work. The OnTimer would be voided when you change layouts, so you don't have to remove it yourself. If you don't change layouts and want to cancel the timer, you would call it with an interval of 0 (zero).

            1 of 1 people found this helpful