• I’ve created a form and some conditions where certain fields only show if the corresponding checkbox is checked (there are 9 in all). The problem is, I also want those corresponding fields to be “only required” if that checkbox is checked.

    Why?

    Because if I select 3 checkboxes and fill out the corresponding fields and hit “submit” it prompts me to fill out the required fields from all of the other fields from the other 6 checkboxes (even though they are unchecked and their corresponding fields are hidden).

    After reading the documentation, I’m thinking it’s not possible to do what I’m trying to do, because the conditions overwrite each other if they’re applied to the same field.

    It seems to me the only way I can accomplish what I’m trying to do would be to make none of the fields required, but that is not an ideal solution because they may submit incomplete information.

    Is there no way to use two conditions on the same fields? Only Show AND Only Require?

    Best regards,
    Glen

    http://wordpress.org/extend/plugins/wordpress-form-manager/

Viewing 1 replies (of 1 total)
  • Plugin Author hoffcamp

    (@hoffcamp)

    You can use multiple conditions on the same field. I think what I said is confusing to non-programmers, so I’ll have to change it.

    What actually goes on is each condition is tested in order. So if you have two conditions that do opposite things to the same field, the later one will ‘override’ the previous one. That is why I have the ‘show if’ and ‘hide if’, so you can build more complex behavior, like if you want to hide a field if X is true, but not necessarily unhide it if X is not true. I hope that makes sense. The short answer is, you only have to worry about conditions overriding each other if they act on different properties of the field.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress Form Manager] Only Show & Only Require?’ is closed to new replies.