Kentico Forms: How do i disable/enable autocomplete option of textbox?

john martin asked on August 15, 2017 18:01

I have created a form and i would like to enable/disable autocomplete option of textbox. Can anyone help me where is the option? Thanks!

Recent Answers


Trevor Fayas answered on August 15, 2017 19:35

If you mean in general configure whether or not it's enabled/disabled, you should see an "Advanced" link with a down arrow below the Form Control selector for the field, this shows all the options available, and for a textbox that includes the Auto Complete.

If you want to make the auto complete dynamically enabled or disabled based on some condition, that's another matter, and we would need to know what condition you would like before we can help you further!

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 15, 2017 20:31

There is a checkbox in the Settings app but I believe this is only for the password and login section of the site. Another option is to create a .skin file and place it in the `/App_Themes/

0 votesVote for this answer Mark as a Correct answer

john martin answered on August 17, 2017 17:38

Basically what I am looking is to populate with user’s historical field entries of browser not getting from database. @Trevor Fayas - I have checked in advanced setting of form and tried with autocomplete text box but not succeeded. @Brenden Kehren - You are right checkbox in the settings app is only for admin/login screen. I am not familiar with .skin file, can you please tell more about that and how to use it. Any documentation link of kentico will also be helpful.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 17, 2017 17:42

John, the .skin file is a standard asp.net file, not specific to Kentico at all. Essentially you add items in it with some "defaults" assigned to them.

So if your site's code name is "MySite", add a text file in the /App_Themes/MySite directory called Default.skin.

In the Default.skin file add the following:

<cms:CMSTextBox runat="server" AutoComplete="false" />
<asp:TextBox runat="server" AutoComplete="false" />

What this means is any instance of cms:CMSTextBox or asp:TextBox will by default have the AutoComplete property set to false. If you added the CssClass property with a value, it would add that to every instance of those controls as well.

0 votesVote for this answer Mark as a Correct answer

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