cms icon indicating copy to clipboard operation
cms copied to clipboard

Forms: "add email" in control panel does not validate on email field

Open freshface opened this issue 3 years ago • 2 comments

Bug description

When creating a form and adding an email the first field "email" doest not validate for a valid email address.

Screenshot 2022-07-27 at 15 29 19

How to reproduce

When creating a form and adding an email the first field "email" doest not validate for a valid email address.

Logs

No response

Environment

Statamic 3.3.17 Pro
Laravel 9.16.0
PHP 8.1.5
aryehraber/statamic-captcha 1.8.0
rias/statamic-address-field 1.0.2

Installation

Existing Laravel app

Antlers Parser

regex (default)

Additional details

No response

freshface avatar Jul 27 '22 13:07 freshface

Note for whoever implements this: you can also add Antlers into that 'Recipient' box so probably need to do some kind of validation there too?

duncanmcclean avatar Jul 27 '22 13:07 duncanmcclean

You can also add multiple email addresses, so would need to work with that.

jacksleight avatar Jul 30 '22 16:07 jacksleight

@duncanmcclean and @jacksleight, that's exactly why it doesn't perform strict email validation here 😂

There just isn't practical way to do it since there's wide range of valid inputs that would work.

jackmcdade avatar Sep 02 '22 00:09 jackmcdade