WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Hack: Turn Off The Autocomplete (1 post)

  1. Baden
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/contact-form-7/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic