Support » Plugin: Contact Form 7 - Conditional Fields » Conditional required fields

  • Resolved kilinkis


    hi guys, and first of all, thanks for this great plugin.

    So, I have a Select with two options, each option will show an additional field, each of these are required. But when selecting an option in the Select and then completing the new field, the form won’t submit. Won’t show errors neither, but in the console, I can see that the request is returning with a validation error. See my log below.

    I just read on this thread
    that non visible errors should not trigger validation errors, nevertheless, that seems not to be the case anymore.

    {“into”:”#wpcf7-f11796-p11849-o1″,”status”:”validation_failed”,”message”:”One or more fields have an error. Please check and try again.”,”invalidFields”:[{“into”:””,”message”:”The field is required.”,”idref”:null},{“into”:”span.wpcf7-form-control-wrap.first-name”,”message”:”The field is required.”,”idref”:null},{“into”:”span.wpcf7-form-control-wrap.job-title”,”message”:”The field is required.”,”idref”:null},{“into”:””,”message”:”The field is required.”,”idref”:null},{“into”:”span.wpcf7-form-control-wrap.organization”,”message”:”The field is required.”,”idref”:null},{“into”:”span.wpcf7-form-control-wrap.your-country”,”message”:”The field is required.”,”idref”:null},{“into”:”span.wpcf7-form-control-wrap.issue”,”message”:”The field is required.”,”idref”:null},{“into”:”span.wpcf7-form-control-wrap.device”,”message”:”The field is required.”,”idref”:null},{“into”:”span.wpcf7-form-control-wrap.number”,”message”:”The field is required.”,”idref”:null},{“into”:”span.wpcf7-form-control-wrap.request”,”message”:”The field is required.”,”idref”:null}]}

    is there any way to make this work?
    thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Conditional required fields’ is closed to new replies.