protected function settings_password($field, $echo = true) { // Once Rocketgenius implements this, this wont be necessary. if (method_exists('GFAddOn', 'settings_password') && is_callable(array('GFAddOn', 'settings_password'))) { $output = parent::settings_password($field, false); } else { $output = parent::settings_text($field, false); $output = str_replace('type="text"', 'type="password" autocomplete="off"', $output); } if ($echo) { echo $output; } return $output; }