• Resolved volkerh

    (@volkerh)


    Hi team,

    first of all: Great work, thanks for this fantastic plugin!

    Is it possible to combine the conditions for the visibility of the fields? For example: Field C is displayed when field A, option 1 is active and (field B, option 1 is active or field B, option 2 is active).
    Thanks for the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @volkerh,

    Glad to hear about your experience with using the plugin. Just to be sure, whether I understood the workflow, do you want Field C to display when Field A Option 1 is selected and Field B Option 1 or Option 2 is selected at the same time?

    If yes, then I’m afraid there isn’t any out-of-the-box setting to combine multiple visibility, you can only add multiple rules in All(AND) or Any(OR) format. Individual rules added cannot be further classified based or AND or OR format.

    Which type of fields are used for Field B and Field A? Possible to also share a URL to the page where you have the form or a screenshot regarding the current field setup, so that we could have a better idea of any workarounds that could be suggested?

    Looking forward to your response.

    Kind Regards,

    Nithin

    Thread Starter volkerh

    (@volkerh)

    Hi Nithin
    thank you for the quick response.
    You got it exactly right. I already thought to myself that this is not how it works.
    Fields A and B are radio fields with 3 Options. Field B is displayed when any option in field A is selected. Field C should be displayed only if the first option is selected in field A and the first option or the second option is selected in field B. Actually a simple thing ??
    I solved this now via 2 separate fields C, one field C appears at “Field A->Option 1” and “Field B->Option 1” and the other field C at “Field 1->Option 1” and “Field B->Option 2”. Maybe there is a better solution?
    Thanks for the help!

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    HI @volkerh

    Thanks for response!

    There may be other solution but a) it will still require additional field – just different b) it will only work if you are not using Field A and Field B for any calculations.

    Here’s how it would work:

    1. Field A can be kept “as is” and I believe you already have visibility for field B also set correctly so that’s fine

    2. now in Field B enable “Calculations” option in settings and then assign value of 1 as calculation option for first and second option and value of 0 for any other option(s); make also sure that “Null (zero)” option is selected instead of “ignore this field”.

    3. Add “calculation” type filed to the form and as a formula simply select the Field B (and nothing else); you can set this calculation field to be hidden (in “Settings”, not via visibility rules)

    4. Finally, for the field C set “Show if ALL” option and add following rules:

    – Field A is Option 1
    – Calculation is greater than 0

    Best regards,
    Adam

    Thread Starter volkerh

    (@volkerh)

    Hello Adam,
    that’s great, that works wonderfully, thank you very much. If I hadn’t rated your plugin and support 5 stars some time ago I certainly would now!
    Many greetings and have a nice weekend.
    Volker

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Combine visibility of fields’ is closed to new replies.