Skip to main content
Nintex Community Menu Bar

can i lock my form at a certain timing of the day

  • October 25, 2019
  • 6 replies
  • 21 views

Forum|alt.badge.img+1

Hi all, 

 

I am a new user of nintex forms for sharepoint and i do not know all the techincalities so please help me out a lil here.

 

So, i have been using my form to collect data from my employees and using a company bot to run functions and generate documents based on this form. However, a limitation from the company bot is that we have maintenance at 11pm to 12am. Thus, if someone uses the form from 11-12, all their records will not be recorded down by the bot (despite its entry recorded in sharepoint custom list). 

 

Are there any ways to go about this? either a lock from the nintex form using rules or a workflow solution? 

 

for information:

i am using responsive forms (the one that are more user friendly) and not the classic forms (that looks more boxey and requires java script)

6 replies

Forum|alt.badge.img+12
  • Scholar
  • October 25, 2019

@seanlyt .....do you use Nintex workflows? If do, then you can create 2 site workflows and schedule them to run at 10:45 and 12:15. First one will change all the permission to read only or view only and 2nd workflow will grant again. 

 

If you don't have Nintex workflow then you can work with your admins and create the PowerShell script to do the same and you can schedule it via Windows Task Schedule on one of the server of your farm.


Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 28, 2019

Hi,

 

On the save button add a disable rule to not allow it to be clicked when the hour is 23:00. (11pm)

This disables the form from 11:00pm to 11:59pm.

The same rule could also be used in a validation rule on the save button which may be even better as you can add a message advising that the form cannot be saved due to maintenance.

equals(formatDate(Current Time,"HH"),"23")

This will stop new entries and saving of a edited form.


Forum|alt.badge.img+12
  • Scholar
  • October 28, 2019

@SimonMuntz ....I like the approach but instead of disabling just the save button, I'll disable the whole form. Why allow users to waste time in filing the form !!!!


Forum|alt.badge.img+1
  • Author
  • October 31, 2019
hi @kunalpatel

I do use Nintext workflow. but i question i have is that, if we change all permission to read only or view only, will this cause me to not be able to edit my list at the backend?

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 31, 2019
Depending on permissions you may not be able to change anything on the back end also. This would be what you would want right. You want no changes during the maintenance.

Forum|alt.badge.img+12
  • Scholar
  • October 31, 2019

@seanlyt ....if you have a requirement that a particular account should have certain permission then you can grant it when changing other permissions to read-only.