• just thought I will leave this here:

    [text* text-60] will generate <input type="text" name="text-60" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false" data-cip-id="cIPJQ342845640">

    but those who prefer to have “required” attribute added to the input tag will have to edit \modules\text.php line 53 add something like if ($tag->is_required()) $atts['required'] = 'required';

    Not sure why it’s not in the main branch.

    https://ww.wp.xz.cn/plugins/contact-form-7/

The topic ‘Required fields does not have necessary tag attribute’ is closed to new replies.