Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

davejampole on "[Plugin: Contact Form 7] Clear a field before enter text"

$
0
0

My need was similar in that when a person started to fill out the form, the data from the previous user was still there and I needed to clear the previously entered content. If this is what you want to do, the following should work:

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";

Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>