If it helps, here is my solution in the meantime:
jQuery(document).on('submit', '.wpcf7-form', function (e) {
jQuery('input.wpcf7-file').each(function() {
if (jQuery(this).val() == '') jQuery(this).remove();
});
});
Yes, I’m coercing the condition on purpose.
-
This reply was modified 6 years, 7 months ago by Wojtek.
-
This reply was modified 6 years, 7 months ago by Wojtek.