• Resolved ostinatofreak

    (@ostinatofreak)


    I have a registration form with a field that is set to only be visible when the Date field (a hidden field set to mm/dd/yyyy format) BEGINS with 07, 08, etc.

    Right now the field’s visibility is set to:

    SHOW this field if ANY of the following rules match:
    Registration Date starts with 07
    Registration Date starts with 08
    [Registration Date starts with 09] (I removed this line for testing)
    Registration Date starts with 10
    Registration Date starts with 11
    Registration Date starts with 12

    Unfortunately, even when I removed the “09” condition (since the current month is September), the form field still displayed, so the conditions don’t seem to be actually working.

    I also tried it with opposite logic, and that didn’t work either:

    HIDE this field if ANY of the following rules match:

    Registration Date starts with 01
    Registration Date starts with 02
    Registration Date starts with 03
    Registration Date starts with 04
    Registration Date starts with 05
    Registration Date starts with 06

    When I changed the 06 entry to 09, this condition failed to hide the form field.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @ostinatofreak

    Can you please share an export of your form via a site like PasteBin or Google Drive so people can take a closer look.

    Thread Starter ostinatofreak

    (@ostinatofreak)

    https://pastebin.com/sH7Cb5TK

    The pertinent question in the form is the one that asks, “Were you ever previously a paid WTC (or formerly RTC) member?” This question should not appear during the months February through August. (This is slightly different than the info I gave above… above I was just trying to simplify the example.)

    Right now (since it’s September), the form works. But if the current date were April or whatever, the form unfortunately still includes this question when it’s supposed to hide it.

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @ostinatofreak

    I hope you are doing good today.

    Dates cannot be controlled via conditional logic from a hidden field. We have dedicated conditional logic for the date field.

    When you choose DATE field, later on in “Were you ever previously a paid WTC” you can set up conditional logic like in below example.

    SHOW this field if ANY of the following rules match:
    DATE / MONTH IS NOT / April
    DATE / MONTH IS NOT / May
    etc.

    or

    HIDE this field if ANY of the following rules match:
    DATE / MONTH IS / April
    DATE / MONTH IS / May
    etc.

    With that, all should work.

    Kind Regards,
    Kris

    Thread Starter ostinatofreak

    (@ostinatofreak)

    Ok, thanks. I guess you must have been talking about a Datepicker field since I don’t see any Forminator field that is just called “Date.” But I see there is an option in the Datepicker field that allows me to have today’s date be the default.

    Follow-up question: if I use conditions to hide the datepicker field (like as soon as “first name” is not null or something like that, making the Datepicker field disappear right away), can I still use the Datepicker field to base other fields’ visibility on? I’ve been playing around with it, and I’m starting to get the impression that “hidden” doesn’t just mean hidden from view, but also hidden from Forminator’s own internal awareness and therefore unusable in decision making. It would be nice to not have to have the date actually showing on the form to the user, but still have Forminator internally be aware of the date.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @ostinatofreak,

    I’m starting to get the impression that “hidden” doesn’t just mean hidden from view, but also hidden from Forminator’s own internal awareness and therefore unusable in decision making

    Yes, fields hidden using conditional logic won’t get submitted.

    It would be nice to not have to have the date actually showing on the form to the user, but still have Forminator internally be aware of the date.

    I’m not sure whether I understand your workflow fully, maybe you could either use multiple “Date Picker” fields and hide/show based on that. Or if you meant you don’t want to show the date picker fields at all, then you can hide using CSS.

    Adding “forminator-hidden” class to the “Styling” tab should hide the Datepicker field:
    https://localhost/nitin/asum/form-b/

    I hope this helps in moving forward.

    Kind Regards,
    Nithin

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @ostinatofreak ,

    We haven’t heard from you for a week now, so it looks like you don’t have any more questions for us.

    Feel free to re-open this ticket if
    needed.

    Kind regards
    Kasia

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Visibility conditions relying on Hidden Date Field not working’ is closed to new replies.