Skip Navigation

Email Validation

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by julieP 4 months, 2 weeks ago.

Author
Posts
#2362479

I have a custom field type Email Address set to required. The form will submit even if the field doesn't contain an email address. If I do a check using cred's form validation hook and the wordpress function is_email, the form behaves correctly and doesn't submit if the field doesn't contain an email address.

Can you test your end please?

#2362649

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screenshot 2022-05-13 at 14.52.11.png
Screenshot 2022-05-13 at 14.48.43.png

Hi Julie

I just tested this and it worked as expected.

We are talking about Post forms rather than User forms?

Did you specify in the email field settings that the field is both required and should be a valid email address? (I'm not sure the latter is necessary, but it is what I have on my test site.)

#2362713

Hi Nigel

Thanks for testing. I haven't changed anything regarding the field settings (they've always been "required" and set to validate as an email) however on checking them, the "validate as email" box is currently unchecked which explains why it's not validating (!) but not how it became unchecked. I'll monitor in case it happens again.

Hope all's well with you (it's been a while)