Autocomplete 

The Autocomplete select in the form editor can be used to define autocomplete properties for input fields. This extension predefines the most common of the input purposes that are widely recognized by assistive technologies and recommended by the W3C. The HTML standard allows arbitrary values.

If you need to provide additional fields, you can reconfigure the autocomplete field with additional select options:

Add Autocomplete options to the backend editor 

Create a form set in your extension and add a config.yaml with the additional autocomplete options. The file is auto-discovered — no PHP or TypoScript registration is required.

Required directory layout
EXT:my_sitepackage/
  Configuration/
    Form/
      SitePackage/
        config.yaml
Copied!
EXT:my_sitepackage/Configuration/Form/SitePackage/config.yaml
name: my-sitepackage/form
label: 'My Sitepackage — Form Configuration'
priority: 200

prototypes:
  standard:
    formElementsDefinition:
      Text:
        formEditor:
          editors:
            600:
              selectOptions:
                # Choose an index that is not in use yet
                12345:
                  value: 'cc-name'
                  label: 'cc-name - Full name as given on the payment instrument'

Copied!