Masked variable auto complete

Jaeik Lee
Mega Sage

I used Masked variable in catalog item to get passwords.

But it caused problem.

JaeikLee_0-1676422709765.png

Chrome auto complete password field and Single line text field that Not id field.

But i can not disable auto complete, so i want way to solve it.

Thanks for you help.

3 REPLIES 3

SatyakiBose
Mega Sage

Hello @Jaeik Lee 

Please go through this community post.

It should help you fix the issue:

Prevent auto-complete from inserting incorrect passwords on a form in Chrome

Sai Shravan
Mega Sage

Hi @Jaeik Lee ,

 

If you are using a masked variable in a ServiceNow catalog item to collect passwords, it can cause issues with browser auto-complete functionality. This is because the browser cannot distinguish between the masked variable field and a regular password field.

 

To resolve this issue, you can try the following options:

 

Use a non-masked variable: Instead of using a masked variable, you can use a regular text variable to collect passwords. This will allow the browser to recognize the field as a password field and offer to save passwords and/or allow auto-complete.

 

Add "autocomplete=off" attribute to the field: You can add the "autocomplete=off" attribute to the input field in the catalog item form. This will tell the browser not to auto-complete the field, but note that this may not work in all browsers and versions.

Regards,
Shravan
Please mark as helpful and mark as correct solution if this helps you.

Regards,
Shravan
Please mark this as helpful and correct answer, if this helps you

Ankur Bawiskar
Tera Patron
Tera Patron

@Jaeik Lee 

Did you try in other browsers?

I feel it's because of browser and nothing to do with ServiceNow

Also check link shared by Satyaki

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader