How to remove past date from the configurable list widget?

  • Profile Image
    manukmohan
    Asked 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.

  • Profile Image
    Adrian
    Answered 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:

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

  • Profile Image
    manukmohan
    Answered on March 01, 2018 at 01:11 PM

    Thank you

  • Profile Image
    manukmohan
    Answered 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. 

  • Profile Image
    Adrian
    Answered 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.

    For example:

    1519930251disable.png

    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.

  • Profile Image
    Adrian
    Answered 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

  • Profile Image
    Nik_C
    Answered on March 02, 2018 at 05:42 AM

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

    Let us know if you need further assistance.

    Thank you!

  • Profile Image
    Adrian
    Answered on March 02, 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

  • Profile Image
    manukmohan
    Answered 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.


    1520012159Capture.PNG

  • Profile Image
    TREVON
    Answered 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.

    1520017321Screen Shot 2018-03-02 at 21.5

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

    https://form.jotform.com/80605785982974


  • Profile Image
    TREVON
    Answered on March 03, 2018 at 01: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.5

    Below is a sample form with the above changes.

    https://form.jotform.com/80605785982974

    Kindly feel free to clone and use the form.