Here’s a solution:
- Put your input component into Block (separate block for each input for which you need to disable autocomplete
- Assign an anchor value for the Block component:
- Drag the Custom Code block into the page logic for the
On Page Enter
event:
- Click the gear icon for the
Custom Code
block and add the following code:
var myInput = document.getElementById('myInputHolder').getElementsByTagName('input')[0];
myInput.setAttribute( "autocomplete", "off");
- Click
Save and Close
and run the page.
Your input component should now have the autocomplete
attribute:
Regards,
Mark