cancel
Showing results for 
Search instead for 
Did you mean: 
telemed
Nintex Newbie

Suppress Submit control based on time of day

Jump to solution

I have a Nintex form which I would like to have only be available from the hours of 7p to 7am.  I have tried several  validation conditions of the Submit button and I can get it to work if I say within the same single digit hour range.

For example if I put Current Time is >=7:00 pm && Current Time <=9:59 PM it will work, but if I change it to a range between say 7pm and 10:00pm it will not.

(Current Time >'7:00 AM' && Current Time <'7:00 PM') will not work

Even tried to other things like this.

((Current Time>='07:00 AM' && Current Time <'12:00 PM') || (Current Time>='12:00 PM' && Current Time <'7:00 PM'))

But I cannot get it to work.

This does work

(Current Time >'10:00 AM' && Current Time <'10:59 AM')

Any ideas or a different way to approach this?

Reply
6 Replies
Automation Master
Automation Master

Re: Suppress Submit control based on time of day

Jump to solution

something like this could work (if current time falls between 07:00PM and 07:00AM - formula return true)

 formatDate(Current Time,'HH')*60 +formatDate(Current Time,'mm')*1 < 7*60 &&  formatDate(Current Time,'HH')*60 +formatDate(Current Time,'mm')*1 > 19*60
Reply
telemed
Nintex Newbie

Re: Suppress Submit control based on time of day

Jump to solution

Excellent thank you.  I have entered it to see if it does the trick.  Thank you kindly.

0 Kudos
Reply
Automation Master
Automation Master

Re: Suppress Submit control based on time of day

Jump to solution

I am super curious what kind of form requires this type of validation! Is it like an IT support form? (No need to answer if you don't want, I just have never seen a button reject me if it's 2AM before...)

0 Kudos
Reply
telemed
Nintex Newbie

Re: Suppress Submit control based on time of day

Jump to solution

We have remote agents that need to address form submissions in as close to realtime as possible (under 20 minutes).  However, we only have agents available for 12 hours a day.  Otherwise the endusers need to contact onsite support by another method.  

I did not want end users submitting the form when it is unmonitored, and bypassing their onsite support.  I put instructions on the form, but we found that users were submitting forms during off hours and expecting someone to be answering it.

Reply
Automation Master
Automation Master

Re: Suppress Submit control based on time of day

Jump to solution

Hey ‌ -- did ‌'s solution work out for you? 

0 Kudos
Reply
telemed
Nintex Newbie

Re: Suppress Submit control based on time of day

Jump to solution

It did. I did think I marked as helpful/solved.

Solution works great. I actually wanted the opposite effect so I just had to change the times but it worked no issue. Thank you.

Reply