• Resolved arashipl

    (@arashipl)


    Hi,
    I am using date picker to ask users for their birthday. Then I would like to show some fields only to underage users.
    Unfortunately it seems that “Starts” and “Ends” conditional logic does not work for me. I tried different format for date, even sent some submissions to check how the field stores information but nothing works.
    I browsed this forum but it seems I am the first one to face such problem.
    I would be grateful for help

    Michal

    • This topic was modified 5 years, 6 months ago by arashipl.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Michal,

    Start and End will use the value of your date picker field, let’s say that you have a format Y-m-d, if you select January 1st 2019 the value will be 2019-01-01.
    So the Start condition can be 2019 because that’s what the value starts with.
    It’s not intended to be used as starting date.

    So at the moment, only workaround I see is to add each year as Start condition and show/hide fields based on that, but this will require a lot of work and would need to be adjusted each year.

    While I was checking this I also discussed it with the devs and they agree that it’s a good idea to have something like this so we’ve put it on our improvement list for future updates ??

    Cheers,
    Predrag

    Thread Starter arashipl

    (@arashipl)

    Thank you for the response.
    At least now I know I am not doing anything wrong.
    I am trying to implement this feature using three separate numeric fields (year, month and day) and a hidden calculation field (year*366+month*31+day) and simple comparision against a given date (in this specific case I need people who will not turn 18 before a given date to supply their’s legal guardians contact information), but variable number of days per month is giving me a headache – preventing people from selecting february 31th in example… using calculated values for numeric range if not possible as far as I’ve seen.

    It would be great if this would be implemented in the future, seems logical it might be needed from time to time.

    Thanks again,
    Michal

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional logic for date picker’ is closed to new replies.