Hi Max,
Is there a method to switch off the auto complete for a complete form? Normally you can put autocomplete="off" in the form tag as additional attribute. Is there a way to insert this.
Kind regards, Pim
Hi Pim
a global autocomplete="off" on the form tag may or may not be respected by the browser, I think the following code inside a JavaScript view in your form page should auto add it:
document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll("form").forEach(f => f.setAttribute("autocomplete", "off"));
document.querySelectorAll("input, select, textarea").forEach(el => el.setAttribute("autocomplete", "off"));
});
You need to login to be able to post a reply.
