How to remove past date from the configurable list widget?

  • manukmohan
    Asked on March 1, 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.

  • Adrian
    Replied on March 1, 2018 at 1: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:

    Date: date:m/d/y:2018-2018

  • manukmohan
    Replied on March 1, 2018 at 1:11 PM

    Thank you

  • manukmohan
    Replied on March 1, 2018 at 1: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. 

  • Adrian
    Replied on March 1, 2018 at 1:52 PM

    This is possible by adding a condition which disables the Submit button if the widget contains times out of this time window.

    For example:

    1519930251disable Screenshot 10

    DEMO: https://form.jotform.com/80583212766964

    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.

  • Adrian
    Replied on March 1, 2018 at 2: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

  • manukmohan
    Replied on March 2, 2018 at 4:00 AM

    Please help me create a string of all times between 12.01 AM to 4.30 PM. That is I want the allow users to submit the form in the time window 4.30 PM to 12 AM.

  • Nik_C
    Replied on March 2, 2018 at 5:42 AM

    Please find the strings here: https://pastebin.com/

    Let us know if you need further assistance.

    Thank you!

  • manukmohan
    Replied on March 2, 2018 at 10:50 AM

    I do not understand. Please help me for creating the string of all possible times between 12.01 AM to 4.30 PM. 


  • Adrian
    Replied on March 2, 2018 at 12:06 PM

    It looks like my colleague did not post the link he meant. Apologies for that.
    You can find the list of all possible times between 12:00 AM to 4:30 PM here.

    https://pastebin.com/raw/gkXEgs9Z

  • manukmohan
    Replied on March 2, 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.


    1520012159Capture Screenshot 10

  • TREVON
    Replied on March 2, 2018 at 2: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.

    1520017321Screen Shot 2018 03 02 at 21 Screenshot 10

    Below is a sample form with the above setting, kindly feel free to clone and use the form.

    https://form.jotform.com/80605785982974


  • manukmohan
    Replied on March 3, 2018 at 11:39 AM

    Thank you very much. It was helpful. One more thing... Now the submit button is disable in the form outside the above mentioned time window.I want to display a text message to the users that "You can submit from 4.00 PM to 12 AM only".


  • TREVON
    Replied on March 3, 2018 at 1:01 PM

    This is possible by adding a "Text Field" and Displaying the field if the condition is met.

    1520099956Screen Shot 2018 03 03 at 20 Screenshot 10

    Below is a sample form with the above changes.

    https://form.jotform.com/80605785982974

    Kindly feel free to clone and use the form.