Using an e-mail validation API #31
tillathenun
started this conversation in
General
Replies: 1 comment 1 reply
-
I would create custom plugin. Then I would create custom validation rule. Remember to cache the API result for validated email, so you don't fire it on every form validation request. https://docs.octobercms.com/3.x/extend/services/validation.html#custom-validation-rules With this approach you should be able to use your validation like you normally validate fields with formbuilder plugin. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm just looking for some advice if possible, please.
My client is asking that I use an e-mail validation API like Zerobounce.
I can do the validation inside the
formBuilder.beforeSendMessage
event of course, but then it'd fail silently and I'd like if possible to give the user a validation message while they're entering their e-mail address.What's the best way of achieving what I want?
Beta Was this translation helpful? Give feedback.
All reactions