Hack: Turn Off The Autocomplete
-
It seems that there have been a number of requests to switch off the autocomplete in the Contact Form 7
<form>
tag. We have hacked a solution to force autocomplete=”off”.Open up
contact-form7/includes/classes.php
and at line 152 change:$form .= '<form action="' . esc_url_raw( $url ) . '" method="post"' . ' class="' . esc_attr( $class ) . '"' . $enctype . ' >' . "\n";
to:
$form .= '<form action="' . esc_url_raw( $url ) . '" method="post"' . ' class="' . esc_attr( $class ) . '"' . $enctype . ' autocomplete="off">' . "\n";
This really should be an option that can be set for each form. Any thoughts on adding this to a future release?
- The topic ‘Hack: Turn Off The Autocomplete’ is closed to new replies.