cancel
Showing results for 
Search instead for 
Did you mean: 

Disable autocomplete for sap.m.Input

Former Member
0 Kudos

Hi,

I have an sap.m.Input field. How can I disable the outocomplete behavior of my browser for this field?

Kind regards

Jens

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

setInterval(function() { let sRandomStr = (Math.random() + 1).toString(36).substring(7); $(".sapMInputBaseInner").attr("autocomplete", sRandomStr); }, 1000);

iftah_peretz
Active Contributor
0 Kudos

Hi,

Not sure I understand your question, because if you are asking about the autocomplete built-in functionality of sap.m.input then the API clearly states that it is done by setting showSuggestion to false. If you need some js/CSS way you can just Google it (like here) based on your needs.