Kentico 13: Disable Autocomplete in Forms

Brian Winter asked on October 17, 2024 17:05

I've looked at the Text Box Properties (couldn't find an Advanced tab), the Form's General and Security tabs and can't find where you can toggle Autocomplete. Nor can I find a code snippet/method that can accomplish this, either.

Does anyone have an answer? Anyone?..... Anyone... Beuller?

TIA

Recent Answers


Juraj Ondrus answered on October 19, 2024 04:43

The best way would be developing a custom form component with desired logic. There are no out of the box settings for this in the default form components.

0 votesVote for this answer Mark as a Correct answer

Laura Frese answered on November 5, 2024 22:04 (last edited on November 5, 2024 22:05)

Here is some information on disabling autocomplete https://developer.mozilla.org/en-US/docs/Web/Security/Practical_implementation_guides/Turning_off_form_autocompletion

In a nutshell, you'd just add autocomplete="off" to the form tag, or to the input fields like so

<form method="post" action="/form" autocomplete="off">

and to do that you can customize the markup of forms to disable it in Kentico form fields https://docs.kentico.com/13/developing-websites/form-builder-development/customizing-the-form-widget

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.