Collection Field: Email Validation


is it possible to add a validation for a field in a collection e.g. to make sure an Email address is entered?

Yes, this is possible.

You can pass any html-input-field parameters to the json-options within the cockpit collection config:

this will result in:

(so the browser prevents saving the entry because the rule for the e-mail field is not met)

here you can see that the json option has been set to the dom / the input field params

Perfect! Thank you very much.

Be aware, that this check is only client side. If you use the api or if you instert mail addresses programmatically, you have hook into to validate the data.