Configure the Form Field Autocomplete Attribute

This feature is available since Bloomreach Experience Manager 14.1.0

Introduction

Goal

Configure the autocomplete attribute on certain supported form field types.

Background

Enterprise Forms supports the autocomplete attribute for a number of field types. The autocomplete attribute can be used to hint to the user agent how to, or indeed whether to, help users fill in forms, for example prefilling the user’s address based on earlier user input.

In the form editor, in the field properties of supported field types, the user can select the value of the autocomplete attribute from the Autocomplete dropdown. The values in the dropdown are configured in the repository.

Supported Field Types

The autocomplete attribute is supported for the following field types:

  • Text Field
  • Date Field
  • Text Area
  • Dropdown

Configure Autofill Detail Tokens

The values in the Autocomplete dropdown in the form editor are configured at the repository node /hippo:configuration/hippo:modules/eforms/hippo:moduleconfig/eforms:autocomplete in a multi-valued String property eforms:autocompletevalues.

The default values are "on", "off", and the autofill field names listed in the HTML specification:

/eforms:autocomplete:
  jcr:primaryType: hipposys:moduleconfig
  eforms:autocompletevalues: ['on', 'off', name, honorific-prefix, given-name, additional-name,
    family-name, honorific-suffix, nickname, username, new-password, current-password,
    organization-title, organization, street-address, address-line1, address-line2,
    address-line3, address-level1, address-level2, address-level3, address-level4,
    country, country-name, postal-code, cc-name, cc-given-name, cc-additional-name,
    cc-family-name, cc-number, cc-exp, cc-exp-month, cc-exp-year, cc-csc, cc-type,
    transaction-currency, transaction-amount, language, bday, bday-day, bday-month,
    bday-year, sex, url, photo, home, work, mobile, fax, pager, tel, tel-country-code,
    tel-national, tel-area-code, tel-local, tel-local-prefix, tel-local-suffix, tel-extension,
    email, impp]

References

https://www.w3.org/TR/html52/sec-forms.html#autofilling-form-controls-the-autocomplete-attribute

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?