Fixed
Project:
GraphQL Webform
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2026 at 08:44 UTC
Updated:
17 Jun 2026 at 11:08 UTC
Jump to comment: Most recent
Part 9 of splitting #3595219: 3.0 Exploration. This issue adds the two autocomplete element types:
webform_autocomplete — a text field with a configured list of autocomplete suggestions.entity_autocomplete — a reference field that autocompletes against entities, including its default referenced entities.Neither is exposed in 3.x today.
autocompleteItems as a plain array of strings, backed by a WebformAutocompleteMatchOperator enum.webform_entity_autocomplete producer exposing the element's configuration, and a webform_element_entity_autocomplete_default_entities producer that resolves the default referenced entities (with their cacheability — building on the default-value/cacheability foundation in #3598935: Improve cacheability and rendering).src/Enum/WebformAutocompleteMatchOperator.php; wire into WebformSchemaBuilder.php.WebformEntityAutocomplete.php and WebformElementEntityAutocompleteDefaultEntities.php; resolve autocompleteItems as [String].WebformExtension.php.AutocompleteTest, EntityAutocompleteDefaultEntitiesTest, WebformEntityAutocompleteTest, plus the autocomplete.gql / webform_entity_autocomplete.gql fixtures and shared test-form additions.Additive: new webform_autocomplete and entity_autocomplete element types, the WebformAutocompleteMatchOperator enum, and default-entity resolution for entity autocomplete. No fields removed.
The webform-autocomplete and entity-autocomplete element types are now supported, including autocomplete suggestion lists and default referenced entities.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
pfrenssen