-
1. Re: End the setIntervall with clearIntervall
Test Screen Name Nov 15, 2017 2:49 AM (in response to karstent46661207)What runs this code (eg is this a validate event for Group3)?
-
2. Re: End the setIntervall with clearIntervall
Thom Parker Nov 15, 2017 8:48 AM (in response to karstent46661207)Recursively calling the same timer is not a good idea. Especially when it is an interval timer. Call the interval timer function once, and once only.
-
3. Re: End the setIntervall with clearIntervall
Thom Parker Nov 15, 2017 9:32 AM (in response to karstent46661207)Also, timers are suspended when a modal dialog is displayed.
Can you explain the ultimate goal? It really isn't practical to use an interval timer to continuously display alerts
-
4. Re: End the setIntervall with clearIntervall
karstent46661207 Nov 15, 2017 9:45 AM (in response to Thom Parker)Hey. Thanks for the feedback.
It will be a document where the user has to enter a number every 5 minutes. Therefore I want to create a Pop-up to remind the user.
There also should be the posiibility to stop the pop-up (for example when you are in a meeting ...).Thanks for the support!
-
5. Re: End the setIntervall with clearIntervall
Thom Parker Nov 15, 2017 10:03 AM (in response to karstent46661207)You want to do something tricky. So you have to think through all the possibilities. For example, the alert box is modal, meaning it blocks anything else from happening until the user clicks on ok/cancel. So what happens if the user doesn't click on anything. What happens if the user doesn't enter a number. Is the time reset every 5 minutes, or when the user enters the number? What are all the specific actions that occur for all cases? How exactly do you want all this to happen?
A better option might be to display a fake popup. You can hide and show form fields. When done right, they look and act a lot like a modeless dialog. Then you could display dynamic data, such as the number of entries the user missed, and the amount of time that has elapsed since the last entry.