Cannot set autocomplete attributes on the Name composite element

Created on 9 December 2024, 12 days ago

Problem/Motivation

There is not a way to set the autocomplete attribute on the child elements of the Name composite element. Ideally, there would be an autocomplete field in the setting section of each child element.

Steps to reproduce

  • Create a Webform for testing.
  • Add the Name composite element.
  • See that there is no way to apply the autocomplete attribute.

Proposed resolution

Implement an autocomplete field for each child element, in the settings section. The values of this field should be similar to those implemented in https://www.drupal.org/project/webform/issues/3113160.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jeremyvii
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    You can set additional attributes in the source

    name:
      '#type': name
      '#title': Name
      '#title__autocomplete': 'This is an autocomplete attribute'
    

    It is not feasible to support every attribute via the UI.

    You can also create your own custom elements in code the supported any attribute

Production build 0.71.5 2024