Turn of autocomplete for all field on a Portal page

aman41
Kilo Explorer

I want to turn off the autocomplete feature present in browsers for all fields in my Service Portal. I have already tried autocomplete="new-password" for the fields and it seems to be working but I'm looking for a one-stop solution to this, such as a client script.

3 REPLIES 3

RaghavSh
Kilo Patron

Try using UI script using jQuery which runs on service portal.

Something of this sort should work : 

$('input').attr('autocomplete','off');

Raghav
MVP 2023

Aman, were you able to achieve this?

 


Raghav
MVP 2023

Saurav11
Kilo Patron
Kilo Patron

Hello,

Please check the below article:-

https://community.servicenow.com/community?id=community_blog&sys_id=0fcca265dbd0dbc01dcaf3231f9619b3

Please mark answer correct/helpful as based on Impact