Skip Navigation

[Resolved] user edit form – user password not to be auto-filled

This support ticket is created 2 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by terryE 2 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#2360879

In a user edit form, is there a way for the user password not to be auto-filled by the browser?

[cred_generic_field field='user_pass' type='password' class='' urlparam='']
{
"required":0,
"validate_format":0,
"default":""
}
[/cred_generic_field]

#2360899

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Terry,

Thank you for getting in touch.

You will perhaps need to use the autocomplete attribute and disable it.

This can be done with the javascript below.

 jQuery(document).ready(function() {
        jQuery('input').attr('autocomplete', 'off');
      });

Please let me know if this helps.

Thanks,
Shane

#2365313

Thanks for that.

I can see that being applied, but my browser is still populating the field 🙁

<input type="password" id="cred_user_form_xxx_1_1_user_pass" name="user_pass" value="" class=" wpt-form-password form-password password" preset_value="" cred_generic="1" placeholder="" preview="" previewsize="" urlparam="" data-wpt-type="password" data-wpt-id="cred_user_form_xxx_1_1_cred_user_form_xxx_1_1_user_pass" data-wpt-name="user_pass" autocomplete="off">

Any other thoughts?

#2365363

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Terry,

Which browser are you using ? Also can you send me a link to the page where I can have a look as well.

If I need to log in please provide the credentials in the private fields that i've enabled.

Thanks,
Shane

#2365991

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Terry,

The autocomplete option has been disabled as it doesn't come with the password suggestions in chrome.

I believe the issue here is with firefox. It still wants to autogenerate passwords even tho the field is set not to. Based on what i've read it appears that this is something that needs to be disabled in firefox itself as the autocomplete attribute has no effect.

Thanks,
Shane

#2367137

ok no worries, I may move the password to a separate form if it causes issues 🙂