We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Raghav Sharma24
Giga Patron

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

Something of this sort should work : 

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

Aman, were you able to achieve this?

 

Saurav11
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