• Resolved istudios

    (@istudios)


    Whenever the form is submitted and validation errors occurr on any field, all Upload fields on the form dissapear.

    No idea what is causing it. Has anyone else experienced this before?

    We are using Contact Form 7 in conjunction with ‘Conditional Fields’, ‘Advanced CF7 DB’, ‘Signature Addon’ and ‘Send PDF with CF7’ (disabling these doesn’t fix the issue.)

    Here’s a test form setup with just the file upload fields, with the same issue: https://pkw.co.nz/test/

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try removing this script:

    <script>
    jQuery(document).ready(function($) {
      $('form.wpcf7-form').on('submit', function() {
        $('input[type=file]').each(function() {
          if ($(this).val() === '') {
            $(this).remove();
          }
        });
      });
    });
    </script>

    I guess you have put it into the theme’s template file or functions.php.

    Thread Starter istudios

    (@istudios)

    Excellent, thanks, that fixed the issue. However now that I have removed it, the form doesn’t submit and it just continually displays the loading indicator. Not sure where this script in the header has come from, but any ideas why removing it would cause the form to stop working?

    Thanks for your help.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Upload Field Dissapears on Submit’ is closed to new replies.