• Resolved Lukasz

    (@wpfed)


    Hi,

    I’m using the popular jquery validation script https://github.com/jquery-validation/jquery-validation

    The script already adds the aria-describedby attribute, the latest version of cf7 is also adding this attribute but it’s overwriting the value, example:
    aria-describedby="wpcf7-f9498-p9543-o1-ve-yourName yourName-error">

    When I comment out the line in cf7 js script I get the desired value:
    $( '.wpcf7-form-control', this ).attr('aria-describedby',n.error_id);
    Result:
    aria-describedby="yourName-error"

    Is there a filter to disable cf7 form adding aria-describedby attribute? Or I can use a custom event on validation failed to prevent the attribute from being added..I may try that as well.

    If any ideas let me know, thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter Lukasz

    (@wpfed)

    I ran out of time, and just left the line commented out, next maintenance will look into another solution.

Viewing 1 replies (of 1 total)
  • The topic ‘aria-describedby conflict, value being overwritten’ is closed to new replies.