sitefinity:TextField autocomplete=off

Posted by Community Admin on 05-Aug-2018 17:49

sitefinity:TextField autocomplete=off

All Replies

Posted by Community Admin on 17-Jun-2014 00:00

How can I remove the autocomplete to Sitefinity: TextField as autocomplete = "off" does not work

 

 <sitefinity:TextField ID="firstName"   runat="server"    CssClass="sfRequired"
                            DisplayMode="Write" Title='firstNameEnvio'>
                            <ValidatorDefinition required="True"
                                messagecssclass="sfError" />
                        </sitefinity:TextField>

Posted by Community Admin on 18-Jun-2014 00:00

Hello Omar, 

You can change the auto complete behavior of the TextField by following these steps:

  • Download the attached file and add its content in your application (for example in the SitefinityWebApp) and build the project
  • Go to the backend of Sitefinity->Administration->Settings->Advanced->Controls->ViewMap and add new entry with the following values:

HostType:

Telerik.Sitefinity.Web.UI.Fields.TextField, Telerik.Sitefinity

LayoutTemplatePath:

~/TextFieldWithoutAutoComplete.ascx

  • Click “Save changes” 

This will replace the default layout file of the TextField with new file with almost the same content, but in the new file we have set autocomplete=”off” to internal  asp:TextBox element.

If you need any further assistance on this matter please feel free to ask.


Regards,
Elena Ganeva
Telerik
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed