KB Article 15962
2018/12/21

Close
X
Contact Tech Support

 Email Tech Support
 (250) 655-1766
 [7:30 - 5:00 PST]
Your Meeting ID will be Provided by a Rep.
Tech Support
Tech Support Home
Software Updates
Knowledge Base Search
Recent KB Articles
Product FAQs
Code Samples
Documentation
Tech Blog
System Requirements
Installation Instructions
Support Testimonials
Contact us to...
Create a Ticket
Request a Free Demo
Suggest a New Feature
Submit Feedback
Upload a Large File
Other Services
Software Training
Professional Services

How to prevent the browser from adding autocomplete values to Presto fields

Product: Presto Type: How to

A common feature in modern browsers is to offer suggestions for inputting data into a field. Browsers will save data that you submit through a field (such as a user name or search value) and offer it again the next time you need to work with that field.

While browsers are able to distinguish different types of input fields in most cases, it is still possible for them to make a mistake, leading you to see autocomplete data for the wrong field. In Presto's case, you can add the autocomplete="off" attribute to your fields in Presto to disable this behaviour.

Presto.Select({row: 20, col: 7}).attr("autocomplete", "off");

If you'd like to disable autocomplete for all input fields across your entire environment, you can add this code to your custom.js:

jQuery(document).on("PageComplete", function(){
   jQuery("input.field").attr("autocomplete", "off");
});

You can read more about the HTML autocomplete attribute here.

Rate This Article

Did this example help you to achieve your goal?
 Yes  No  Don't Know

Enter additional comments below.   If you want to hear back from us, include your contact information.

Email Address:
Comments:
Please enable JavaScript in order to rate this page.