Jump to content

Autofill how to turn off


RobYost

Recommended Posts

  • 1 year later...
On 12/5/2017 at 10:00 PM, RobYost said:

<form method="post" action="/form" autocomplete="off">

 

  uniEdit1.ClientsEvents.ExtEvents:

function afterrender(sender, eOpts)
{
  var me = sender.inputEl;
  me.el.dom.setAttribute('autocomplete', 'current-password');
  me.el.dom.setAttribute('name', 'current-password');


}

https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete-current-password

Link to comment
Share on other sites

  • 2 years later...
On 5/29/2019 at 8:35 AM, ikaurov said:

This solution did not help me:

sender.element.dom.setAttribute('autocomplete', 'off');

  But this one works good:

UniSession.AddJS('$("input").attr("autocomplete", "off");');

Thanks.

For me it worked using "new-password".
The only detail I couldn't do was hide the saved passwords popup when logging in.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...