• Hello,

    I use the CF7 Module for all my forms. Since several weeks, I noticed that the field errors are not displayed when an acceptance field is present in on form.
    When submitting a form, if the acceptance field is unchecked and/or another field too, nothing happens. I don t even see the form work on submit. I have to replace the acceptance field with a checkbox.
    When I don t use your plugin, all is correct.

    Do you know why ?

    Thx for your help!

    Regards.

Viewing 1 replies (of 1 total)
  • Hi @kalagan80

    this happens because the unchecked acceptance box disables the submit button (therefore no errors, because the submit button is deactivated). You need to check the acceptance box, then you should see the regular errors/warnings.

    @divisupreme Unfortunately this disabled submit is not visible, because your CSS overrides the changed cursor from CF7 for the disabled cursor.

    The original CSS from CF7 is:

    .wpcf7 .wpcf7-submit:disabled {
    cursor: not-allowed;
    }

    Your CSS which overrides:

    .dsm_contact_form_7 .wpcf7-form-control.wpcf7-submit {
    display: inline-block;
    font-family: inherit;
    cursor: pointer;
    color: #2ea3f2;
    }

    Workaround for custom CSS:

    .wpcf7 .wpcf7-submit:disabled {
    cursor: not-allowed !important;
    }

    Maybe this could be fixed in the next release!

    All the best
    Torsten

Viewing 1 replies (of 1 total)
  • The topic ‘Acceptance field does not work with validation errors’ is closed to new replies.