Answers.Body: <p>I've created a ticket <a href="https://lab.civicrm.org/dev/core/-/issues/5587" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/5587</a>. It seems to have happened between 5.74 and 5.75.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-07T15:56:05.597Z
Answers.Text: Thank you.  In the meantime, I'm not sure how to fix it so that people can register for our events.
Answers.UserDisplayName: BubbaWanders
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-07T18:39:09.223Z
Answers.Text: do you mean how they register while mis-entering email addresses? or are you saying the form totally doesn't work currently?
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-08T13:45:50.770Z
Answers.Text: The form works, but the user can submit the form without a valid email address.  Most of our events require a receipt (we do some zoom meetings, and the zoom link is in the receipt) so it's a problem if they don't get it.  It does happen that someone puts in the wrong email address, but we can usually figure that out.
Answers.UserDisplayName: BubbaWanders
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-08T13:46:47.560Z
Answers.Text: I put in an ugly piece of js to change the field type to email, so that they get at least a warning if they haven't entered a valid email address.
Answers.UserDisplayName: BubbaWanders
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-09T04:38:36.033Z
Answers.Text: There's a potential patch listed in the ticket now. See https://github.com/civicrm/civicrm-core/pull/31455/files
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-07T13:57:14.063Z
Answers.LastActivityDate: 2024-11-07T13:57:14.063Z
Answers.UserDisplayName: Demerit
Body: <p>On testing a new event form, we have discovered, by accident, that we can complete the registration form without a valid email address.  The email address is required, so the field has to have something in it, but it doesn't have to be a valid email address. Same for the phone number field, although it's not require, it doesn't have to be a phone number.</p>
  <p>This form: <a href="https://birthmark.org/pan" rel="nofollow noreferrer">https://birthmark.org/pan</a>  is using the &quot;New Individual&quot; reserved profile for the name, email, and phone.  This same form, without the WP shortcode is here <a href="https://birthmark.org/civicrm/event/register/?reset=1&amp;id=29" rel="nofollow noreferrer">https://birthmark.org/civicrm/event/register/?reset=1&amp;id=29</a>, but the behavior is the same (to rule out a shortcode error).</p>
  <p>Error logs for the site do not show any errors related to this.  Civi error logs also don't have any errors.  Console shows a few warnings, but they are related to fonts and image preloading.</p>
  <p>This is not happening in contribution pages, only event registrations.</p>
  <p>I'm not sure what my next troubleshooting step should be, without any errors to guide me. Any help or ideas would be greatly appreciated.</p>
  <p>I have disabled all the extensions that I possibly can to rule those out.  I have disabled all custom templates.</p>
  <p>WordPress 6.6.2
  CiviCRM 5.78.3</p>
  <p><a href="https://i.sstatic.net/5jdkzfHO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5jdkzfHO.png" alt="Screenshot" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-11-06T20:25:02.397Z
Comments.Text: You say 'suddenly'. do you mean you. believe that email fields were going through some form of validation and that this has now stopped working (which i don't believe is the case, ie that email fields in civi forms have never gone through some form of validation and just retested on dmaster and it allowed both demo@example and demoexample to go through which not valid
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-11-06T20:57:31.430Z
Comments.Text: Pete, if I don't put an entry with a @into the email field on the contribution form, I get an error message that says, Please enter a valid email address. and the form wont' submit.  The event registration form used to be the same way, but now is not.
Comments.UserDisplayName: BubbaWanders
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-11-06T22:02:45.453Z
Comments.Text: Looking at a 5.69 site, it does seem to validate the email. So yeah seems like a bug got introduced somewhere.
Comments.UserDisplayName: Demerit
Tags: <civievent><profile>
Title: Can suddenly register for events without validating email address
ThreadText: # Can suddenly register for events without validating email address
  
  (Asked by: username_0 on 2024-11-06)
  
  On testing a new event form, we have discovered, by accident, that we can complete the registration form without a valid email address. The email address is required, so the field has to have something in it, but it doesn't have to be a valid email address. Same for the phone number field, although it's not require, it doesn't have to be a phone number.
  
  This form: <https://birthmark.org/pan> is using the "New Individual" reserved profile for the name, email, and phone. This same form, without the WP shortcode is here <https://birthmark.org/civicrm/event/register/?reset=1&id=29>, but the behavior is the same (to rule out a shortcode error).
  
  Error logs for the site do not show any errors related to this. Civi error logs also don't have any errors. Console shows a few warnings, but they are related to fonts and image preloading.
  
  This is not happening in contribution pages, only event registrations.
  
  I'm not sure what my next troubleshooting step should be, without any errors to guide me. Any help or ideas would be greatly appreciated.
  
  I have disabled all the extensions that I possibly can to rule those out. I have disabled all custom templates.
  
  WordPress 6.6.2
  CiviCRM 5.78.3
  
  [![Screenshot](https://i.sstatic.net/5jdkzfHO.png)](https://i.sstatic.net/5jdkzfHO.png)
  
  **Tags:** civievent, profile
  
  > **Comments:**
  > **username_1**: You say 'suddenly'. do you mean you. believe that email fields were going through some form of validation and that this has now stopped working (which i don't believe is the case, ie that email fields in civi forms have never gone through some form of validation and just retested on dmaster and it allowed both demo@example and demoexample to go through which not valid  
  > **username_0**: Pete, if I don't put an entry with a @into the email field on the contribution form, I get an error message that says, Please enter a valid email address. and the form wont' submit.  The event registration form used to be the same way, but now is not.  
  > **username_2**: Looking at a 5.69 site, it does seem to validate the email. So yeah seems like a bug got introduced somewhere.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2024-11-07. Score: 3
  
  I've created a ticket <https://lab.civicrm.org/dev/core/-/issues/5587>. It seems to have happened between 5.74 and 5.75.
  
  > **Comments:**
  > **username_0**: Thank you.  In the meantime, I'm not sure how to fix it so that people can register for our events.  
  > **username_1**: do you mean how they register while mis-entering email addresses? or are you saying the form totally doesn't work currently?  
  > **username_0**: The form works, but the user can submit the form without a valid email address.  Most of our events require a receipt (we do some zoom meetings, and the zoom link is in the receipt) so it's a problem if they don't get it.  It does happen that someone puts in the wrong email address, but we can usually figure that out.  
  > **username_0**: I put in an ugly piece of js to change the field type to email, so that they get at least a warning if they haven't entered a valid email address.  
  > **username_2**: There's a potential patch listed in the ticket now. See https://github.com/civicrm/civicrm-core/pull/31455/files  
  
  ---
  
  