Skip to content

Tagify Webform

Tagify Webform adds an Entity autocomplete (Tagify) element (entity_autocomplete_tagify) to Webform. It references entities the way Webform's own Entity autocomplete element does, with the Tagify widget in place of the comma-separated text field.

drush en tagify_webform

Add the element

  1. Edit a webform's elements, for example /admin/structure/webform/manage/contact/build.
  2. Add an Entity autocomplete (Tagify) element, from the Entity reference elements group.
  3. Pick the entity type and the selection settings under Entity reference settings, and the widget options under Tagify settings.
Setting Default Description
Autocomplete matching Contains Starts with or Contains.
Number of results 10 How many suggestions the dropdown lists. 0 removes the limit.
Suggestions dropdown When 1 character is typed When the dropdown opens.
Include entity id off Shows the entity ID next to each tag.
Info label empty Token template for the info label.

The placeholder is the element's standard Placeholder setting.

Values

Tags or Multiple under the element's settings let it hold more than one value; a number under Multiple limits how many. A submission stores entity IDs, as Webform's entity autocomplete does, so submission views, tokens and exports treat both elements alike.

Every submitted tag is checked against the selection handler. An entity it would not offer is rejected, and so is text that matches no entity. When the selection settings allow creating referenced entities, text that matches no entity becomes a new one, saved together with the submission.