linawolf/form-autocomplete

Offers the option to configure autocomplete properties for fields in the form backend editor.

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

dev-main 2023-07-10 12:36 UTC

This package is auto-updated.

Last update: 2024-04-10 14:19:02 UTC


README

Autocomplete properties for typo3/cms-form for TYPO3 v11.5 and v12.4. Is included in the TYPO3 Core starting with TYPO3 13.0, see Feature https://review.typo3.org/c/Packages/TYPO3.CMS/+/79208

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

Extend the EXT:form configuration:

EXT:my_sitepackage/Configuration/TypoScript/setup.typoscript:

plugin.tx_form {
  settings {
    yamlConfigurations {
      # register your own additional configuration
      # choose a number higher than 10 (10 is reserved)
      100 = EXT:my_sitepackage/Configuration/Form/CustomFormSetup.yaml
    }
  }
}

Redefine the backend input in the extended YAML:

EXT:my_sitepackage/Configuration/Form/CustomFormSetup.yaml:

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