How to conditionally disable field after date?

  • Profile Image
    nz_yeehaa
    Asked on October 29, 2017 at 06:00 AM

    I have a field i want to disable after a certain date. i.e: that selection is only possible until...

    and another example -after this date - this field is visible...

    somebody else might express another example - discount available until..

    date based events seem to be non existent?

    i have spent 5hours pushing every button i can find and reading every thread...

    a lot of threads relate to an old version...


  • Profile Image
    Nik_C
    Answered on October 29, 2017 at 07:19 AM

    You could use conditional logic for that and disable the field after a certain date:

    1509275845Screen Shot 2017-10-29 at 12.2

    With similar logic you can make the field available again:

    1509275920Screen Shot 2017-10-29 at 12.2

    Could that work for you?

    Please let us know.

    Thank you!

  • Profile Image
    nz_yeehaa
    Answered on October 30, 2017 at 03:04 AM

    Hi Nic,

    appreciate your response, and the speed of response... jotform is excelling

    Question first - how do i get notified when there is a response to my question... nothing in login, had to come and find it...


    Reply...

    "could that work for me?"

    NO...

    1509346777jotform.png

    I saw something like that on another forum - i dont have those fields...

    and less than gave lots of errors and wasted 4 hours experimenting with every date field i could find to see if I could get less than or greater than working - but they seem to work best on numbers - not dates, or date strings


  • Profile Image
    Nik_C
    Answered on October 30, 2017 at 04:27 AM

    Question first - how do I get notified when there is a response to my question... nothing in login, had to come and find it...

    You should receive an email for every response regarding the forum questions.

     Regarding the issue, I'm not sure why you have difficulties. I created this condition:

    1509351875Screen Shot 2017-10-30 at 9.27

    And it works fine:

    1509351936screencast.gif

    On which field you're working on and how you would like to have it working?

  • Profile Image
    nz_yeehaa
    Answered on October 30, 2017 at 07:59 AM

    tested with *basic* date - lite mode - no past - no future - YYYY-MM-DD - read only - no time - hidden

    have all the correct fields 

    state:after

    state:before

    and it works *** :)


    widgets wouldnt work at all - lesson - dont use widgets....

    will post another about widget errors soon

  • Profile Image
    Kiran
    Answered on October 30, 2017 at 11:01 AM

    Generally, the widgets are loaded on the form using iframe method and the conditions might not work for all the widgets. The default date field is the best field to set the conditions or enable the user to select any specific dates, etc. If you can provide us with the form ID that you are working so that we can take a look and assist you accordingly.

    Thanks!

  • Profile Image
    nz_yeehaa
    Answered on October 30, 2017 at 08:53 PM

    hi Kiran, thanks for your reply, this issue is resolved.

    removed the widgets I was using and now use *basic* date only and it works.

    the settings offered earlier in the question were not available until I removed the widget and used the *basic* date

  • Profile Image
    John_Benson
    Answered on October 30, 2017 at 11:31 PM

    Thank you for updating us. We're glad that the issue has now been resolved.

    Contact us again here in the Support Forum if you need assistance.