Home › Forums › Backend Issues (wp-admin) › Text field: Disable browser's autocomplete › Reply To: Text field: Disable browser's autocomplete
Currently, the only way that I can see this might be done is by adding custom JavaScript to the page to turn on autocomplete on some fields after the page loads. I’m not 100% sure how you’d do that. https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/
This is only a guess:
jQuery(document).ready($) {
// the field key of your field
$('[data-key="field_1234567"] input').attr('autocomplete', 'off');
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.