input field autocomplete

Hi, I am having trouble with the autocomplete feature of chrome. No matter what I try, it keeps making suggestions for input fields. I have added the htmlSnippet widget to the page with the following script: $(document).ready(function () {         $(':input').attr('autocomplete', 'off'); }); This works fine the first time the page is opened but every next time chrome starts to autofill again. Does anyone have a descent solution without having to disable this feature in chrome?
3 answers

Hi Jeroen,

Did you try using Attribute Helper widget from app store?

For more details have a look at this forum post


Hope this helps!


Hi Mohammed,

Thnx for your support.

Unfortunately the attribute helper widget is for mendix 8 and up. I am running on 7.23.7.

But maybe Ockert has something to use, I have asked him.




Thanks to the suggestion from Ockert I found a solution.

For those who are interested, I have added to my index.html at the bottom. Make sure it is before the mxui.js:

        <script src="js/jquery-1.11.3.js?{{cachebust}}"></script>
        <script language="JavaScript" type="text/javascript" src="js/disable_autocomplete.js?{{cachebust}}"></script>
        <script src="mxclientsystem/mxui/mxui.js?{{cachebust}}"></script>

I placed the jquery-1.11.3.js in the js folder.

I created the disable_autocomplete.js script in the js folder with the following content:

    $( document ).on( 'focus', ':input', function(){
        $( this ).attr( 'autocomplete', 'off' );

And this worked for me.