Automatic association to the credentials available in the PC when setting the Password type

Hi

I'm trying to use two TextBox controls to insert username and password into a form (which is not login). If in the second control I use the Syncfusion.Blazor.Inputs.InputType.Password option automatically, the two controls are associated with the list of credentials available on the PC and are even populated with some criteria.

Is it possible to prevent this automatic association by leaving InputType.Password instead of InputType.Text? In the latter case, in fact, the two controls work regularly as expected.


waiting for your kind reply

kind regards


3 Replies

SN Sevvandhi Nagulan Syncfusion Team August 24, 2021 02:04 PM UTC

Hi Salvatore,   


 
 
Greetings from Syncfusion support.  


 
 
We checked your query. We can disable the browser suggestions by setting AutoComplete  = “off” in a SfTextBox component using AutoComplete property. Refer to the code below,   
  
@using Syncfusion.Blazor.Inputs   
   
   
<SfTextBox Autocomplete="AutoComplete.Off"></SfTextBox>   
   
 
Screenshot:    
  
     

You can also set the AutoComplete  = “off” in a SfTextBox component using the HtmlAttributes property. Refer to the code below,  
 
  
<SfTextBox HtmlAttributes="@htmlAttributes"></SfTextBox>   
   
@code{   
    public Dictionary<stringobject> htmlAttributes { getset; } = new Dictionary<stringobject>() { { "autocomplete""off" } };   
}   
   
If we misunderstood your query, please provide the more details about requirement to validate further. 
 
Kindly get back to us for further assistance.  
  
 
Regards,   
Sevvandhi N   



SA Salvatore August 24, 2021 04:12 PM UTC

Hi, 

I tried your suggestion ( <SfTextBox Autocomplete="AutoComplete.Off"></SfTextBox> ) on both controls but the browser keeps showing username and password available on the pc. I am using version 19.2.0.51. Could it be due to this?

Thank you

Greetings



SN Sevvandhi Nagulan Syncfusion Team August 25, 2021 02:34 PM UTC


Hi Salvatore, 


We checked your query. We were unable to replicate the reported issue and attached the ensured sample below for your reference. 




If still issue persists, kindly provide the video/screenshot of the issue along the browser details or modify the above sample to replicate the issue. Also confirm whether autocomplete=”off” property is set in the input element. In addition, please confirm whether you enabled any browser extension for autofill or turned on browser autofill option.  


Regards, 
Sevvandhi N 


Loader.
Up arrow icon