menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AutoComplete - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AutoComplete

    Defines whether the browser is allowed to automatically enter or select values for input fields using stored user data.

    Inheritance
    System.Object
    AutoComplete
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class AutoComplete : Enum
    Remarks

    The autocomplete feature leverages browser-stored user data such as previously entered values, saved passwords, or address information to provide suggestions and automatic filling capabilities. This enhances user experience by reducing repetitive data entry, but can be disabled for sensitive fields or when custom autocomplete functionality is preferred.

    Examples

    Controlling autocomplete behavior:

    <SfTextBox AutoComplete="AutoComplete.Off" Placeholder="Sensitive information"></SfTextBox>

    Fields

    Off

    Disables browser autocomplete functionality, preventing automatic suggestions and requiring manual input for all values.

    Declaration
    public const AutoComplete Off
    Field Value
    Type Description
    AutoComplete

    Represents the "off" state for browser autocomplete functionality.

    Remarks

    When disabled, the browser will not provide autocomplete suggestions or automatically fill the input field. This is typically used for sensitive information such as passwords, credit card numbers, or when implementing custom autocomplete functionality.

    On

    Enables browser autocomplete functionality, allowing automatic suggestions and filling based on user's previous inputs and saved data.

    Declaration
    public const AutoComplete On
    Field Value
    Type Description
    AutoComplete

    Represents the "on" state for browser autocomplete functionality.

    Remarks

    When enabled, the browser will provide autocomplete suggestions based on previously entered values, saved form data, and other stored user information. This improves user experience by reducing the need for repetitive typing.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved