Re: [Zotonic-Dev] Ensure that an email is provided

2018-02-16 Thread Marc Worrell
> On 16 Feb 2018, at 17:17, Antoine 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: {% val

[Zotonic-Dev] Ensure that an email is provided

2018-02-16 Thread Antoine
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. What is the best solution to this problem ? Thank you. -- --- You received this me