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]
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
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?
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
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
ok no worries, I may move the password to a separate form if it causes issues 🙂