Subfield widgets#
Every subfield in a Custom Field has its own configurable widget — the form element used to collect that subfield's value when editing content. Some subfield types offer more than one widget to choose from (for example, an entity reference subfield can use autocomplete, radios, a select list, and more), and the available widget is configured per subfield in the field's settings.
Available widgets#
- Checkbox
- Color
- Date and time
- Date range
- Duration
- Entity reference
- File
- Hidden
- Image
- Link
- Map (serialized array)
- Number
- Radios
- Select
- Telephone
- Text
- Textarea
- Time
- Time range
- URL
- UUID
- Viewfield select
Extending widgets#
If none of the built-in widgets cover your use case, you can create your own by extending an existing widget plugin.
See How to extend a widget plugin for more information.