• Hi there,

    I’m using the latest version of WP and the CF7 plugin.

    I have a text form field with required set (text*). I also have a value of “$” set on the field. When I click submit with all required fields blank to test errors and validation, all the required fields show up with red, but not the field with the value set. All other fields have no value set, so that appears to be the only difference.

    When I look at the code I see that this HTML is being added to all required fields but not the field with the value set:

    <span role="alert" class="wpcf7-not-valid-tip">The field is required.</span>

    And this is the HTML after submission test for the value set form field:

    <input type="text" name="client-budget-range" value="$" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false">

    Is this a bug?

    Thanks.

    • This topic was modified 6 years, 1 month ago by SuperfeinCreative. Reason: Code wasn't displaying properly
  • The topic ‘When text field has value set, no alert appears’ is closed to new replies.