> On 16 Feb 2018, at 17:17, Antoine <[email protected]> wrote:
> 
> What is the correct validator to force the user to enter an email ?
> 
> presence; will not check that email is valid.
> email; will accept the field to be empty.
> 
> Using both validator, trigger an javascript warning.

Use both as follows:

{% validate id=“…”  type={presence} type={email} %}

Cheers, Marc

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to