• Resolved Daniel Gomez

    (@daniel-gomez)


    Hi,

    I’m having problems with the conditions after the installation of tha last version.

    I have 3 dropdown selects:
    – Option1
    Selection1
    Selection2
    Selection3
    Selection4
    Selection5
    – Suboption1
    – Suboption2

    I want to hide Suboption1 if values in Option1 are 1, 3 or 5, and I want to hide Suboption2 if values in Option1 are 2 or 4. Doing this I will only show one Suboption depending on the option selected.

    The problem is that when I select Selection4, boths suboptions are shown.

    The conditions of Suboption1 are:
    Hide if Option1 is Selection1 OR Option1 is Selection3 OR Option1 is Selection5

    The conditions of Suboption2 are:
    Hide if Option1 is Selection2 OR Option1 is Selection4

    I’m I doing something wrong?

    Thanks.

    https://wordpress.org/plugins/caldera-forms/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Josh Pollock

    (@shelob9)

    The tricky thing here is avoiding creating loops, where conditionals become self referential. If you look in the video in the release post for CF 1.3 (https://calderawp.com/new-payment-processors-and-an-exciting-partnership/) you can see I built a form with groups of fields that needed to show based on multiple conditions. That form is now included as a form template you can use to create a new form. You should look at how that is done, its a bit tricky (I screwed it up a few times.)

    Thread Starter Daniel Gomez

    (@daniel-gomez)

    Hi Josh,

    I think I found the problem in another place.

    The conditions were setup properly but if I change the conditions and just update the form, the behavior is not changed and the form keeps working as before. I have to uncheck and check the applied fields’ checkbox before updating the form for the changes to take effect.

    Is this the normal behavior?

    Thanks for pointing me to the video, it was very useful

    Plugin Contributor David Cramer

    (@desertsnowman)

    No, that’s not normal. Congratulations! You’re the first to find a bug with the new conditions!

    I’ll get it sorted ASAP and post a fix. thanks for finding it.

    Thread Starter Daniel Gomez

    (@daniel-gomez)

    Hi,

    I have another issue.

    If I try to set an “Is greater than” condition referring to a dropdown with numbers (i.e. Is greater than 2), when I uncheck and check the applied fields’ checkbox, the condition is changed to “Is”, not allowing me to use “is greater than”.

    Is this because the checkbox doesn’t work with numbers?

    Regards.

    Plugin Author Josh Pollock

    (@shelob9)

    Daniel –

    This is a known issue we will be addressing ASAP https://github.com/Desertsnowman/Caldera-Forms/issues/223

    Thread Starter Daniel Gomez

    (@daniel-gomez)

    I’ll wait for the fix.

    Thanks a lot for your support and congratulations for this great tool.

    Plugin Author Josh Pollock

    (@shelob9)

    For the record this is fixed in the current-dev branch on Github and will be updated on WordPress.org this week.

    Hi Josh,

    Not so sure, will this be fixed by downloading the plugin version from github and re-install it in wordpress?

    I tried to do so, but conditional functions still defaults to “is” instead of something I need.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Conditions not working in version 1.3.0’ is closed to new replies.