This widget can be used with char
and text
fields.
<field name="email" widget="email" />
Working with multiple emails
v2.29.0To work with multiple emails, you can use the widget_props
to enable it.
<field name="emails" widget="email" widget_props="{'multi': true}" />
foo@bar.compatata@brava.cominvalid@email
It can be used in the tree view as well:
<field name="emails" widget="email" widget_props="{'multi': true}" />
API
Property | Description | Type | Default | Version |
---|---|---|---|---|
widget_props | Extra properties for the widget | object | - | - |
Widget props
Property | Description | Type | Default | Version |
---|---|---|---|---|
multi | Enable multiple emails | boolean | false | v2.29.0 |