Closed pdaleramirez closed 1 year ago
Hi Dale, I’m unable to replicate this. If the Settings > Users > Settings > Validate custom fields on public registration is checked and the custom field is required, it gets validated on registration. Are you able to replicate it with this option turned on?
That being said, I can replicate the related Commerce issue #3109 on Craft 4.4 but not on Craft 4.3.9 (using the same version of Commerce in both cases, 4.2.4 Pro), and I see what causes it. I'll update this issue again once the fix is ready.
PR submitted.
Hi Dale, I’m unable to replicate this. If the Settings > Users > Settings > Validate custom fields on public registration is checked and the custom field is required, it gets validated on registration. Are you able to replicate it with this option turned on?
That being said, I can replicate the related Commerce issue #3109 on Craft 4.4 but not on Craft 4.3.9 (using the same version of Commerce in both cases, 4.2.4 Pro), and I see what causes it. I'll update this issue again once the fix is ready.
Thank you for checking; it is my fault, my project config did not make the custom field back to "required" when changing databases.
Cool, thanks for the update Dale!
What happened?
Description
Adding a required custom field to an Element stopped validating when saving the field on a front-end form after upgrading to CMS version 4.4
Steps to reproduce
Expected behavior
It should not save the user and display the validation error of "Description cannot be blank."
Actual behavior
It saves the user and no validation error text is displayed.
Craft CMS version
4.4
PHP version
8
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
-