Auto-suggestions issue in chrome

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

#[Informational Post]​

This is an informational post

Description

Since version 34, Chromium/Chrome ignores the autocomplete="off" attribute on forms or input fields. Recent versions of other browser do the same, although implementation details vary. This is especially problematic for admin areas because Chrome might automatically fill in a password on a "add new user" forms.

Kony is internally adding autocomplete attribute to the text box which chrome has stopped accepting.

Solution

To change the attribute of the particular text box you can make use of this JavaScript logic.

In Post show of the form lets say the phone number text box id is formname_phonenumber

Please use the below code in code snippet of post-show to remove auto suggestions by chrome.

var h =document.getElementById('formname_phonenumber');

h.setAttribute(‘autocomplete’, ‘asdfasdfadf’);

Note: ‘asdfasdfadf’ is just a random string that is assigned here

For every other text box in the project this random string should be unique

Hope this post is helpful.

Thanks for sharing knowledge with the community!