- manukmohanAsked on March 01, 2018 at 12:40 PM
Hello Jotform, I prepared a jotform using configurable list widget. I want to the users from entering the current date only in date column. So when the user opens the form the form should show only the current date.
- JotForm SupportAdrianAnswered on March 01, 2018 at 01:09 PM
Unfortunately, it is not possible to disable the past dates or future dates.
You can only set a year range to be displayed.
For example, if you only want the 2018 year to be shown, this is how the content in the widget should look like:
- manukmohanAnswered on March 01, 2018 at 01:11 PM
- manukmohanAnswered on March 01, 2018 at 01:13 PM
How can I restrict the users to submit the forms in a particular time window only (ex: 10 am to 5 pm). I have made the form using configurable list widget.
- JotForm SupportAdrianAnswered on March 01, 2018 at 01:52 PM
This is possible by adding a condition which disables the Submit button if the widget contains times out of this time window.
On this demo, the submit button is disabled if the time field in the widget is between 05:01 PM and 05:59 PM.
Let me try if I can simplify this or if I have to generate a long string with the unallowed times.
- JotForm SupportAdrianAnswered on March 01, 2018 at 02:13 PM
I had to generate a string of all the possible times from 05:01 PM to 10:00 AM.
You can find it here: https://pastebin.com/raw/PsZ19YS6
Then, using a condition, you can disable the Submit button if the Configurable List contains any of these values. (See the image above)
Form DEMO: https://form.jotform.com/80583212766964
- JotForm SupportNik_CAnswered on March 02, 2018 at 05:42 AM
Please find the strings here: https://pastebin.com/
Let us know if you need further assistance.
- manukmohanAnswered on March 02, 2018 at 12:38 PM
Thank you for your valuable time. But it's not what I required. Right now the conditional statement hides the submit button if the user has entered time outside that range 4.30 PM to 12 AM. I want the submit button to be hidden/not working everyday from 4.30 PM to 12 AM irrespective of the time entered by the user.
I prepared the the form for monitoring the working hours in a day for each user. So, in the form, the users will chose their working hours and submit the form. I want the users to submit the form only after their working hours. So, I need to make the form in such a way that the users can only submit the form from 4.30 PM to 12 AM.
Disabling the form using 'form settings' each day manually is a tiresome job for me :). Please help me resolve this problem.
I am attaching a screenshot of the form I have created.
- TREVONAnswered on March 02, 2018 at 02:02 PM
In order to achieve the above you will need to add "time field" to your form, set the default time to current time, change the timing setting to 24 hours instead of 12 hours time setting.
Once you have setup the above, You will then create a hide/show conditional logic that will check the time between 16:40 hours to 00:00 hours and it will disable the submit button.
Below is a sample form with the above setting, kindly feel free to clone and use the form.