2017-03-26, 10:44 AM
Every now and then we got informed by users not being able to register because of a some Custom Profile Fields on our registration page (we use 2 additional fields). Error message: 'You did not enter a valid value for the "Shop Code" field. Please enter a valid value before continuing.'
None of our custom fields were ticked 'required' so we finally decided to pull them from our registration page just in case.
You can imagine our disbelief when we realized, when we got yet another email that registration would be impossible because of said custom field still being 'required', yet not even being displayed.
Since this wasn't true for the other field, I tried to find a pattern and I think I found it:
Custom profile field 1 ('required' not ticked): uses regex with [a-zA-Z] -> unintentionally 'required'
Custom profile field 2 ('required' not ticked): does not use regex -> works as advertised as not being 'required'
Immediately after deleting the regex of Custom Profile Field 1, everything was working fine again!
My guess would be, that the system checks for letters in regex Custom Field and therefore rejects an empty field?
I mean it mages sense regarding the regex, but why is a NULL entry being parset at all?
And if the field isnt enabled on the registration page, this is even more dangerous imho.
None of our custom fields were ticked 'required' so we finally decided to pull them from our registration page just in case.
You can imagine our disbelief when we realized, when we got yet another email that registration would be impossible because of said custom field still being 'required', yet not even being displayed.
Since this wasn't true for the other field, I tried to find a pattern and I think I found it:
Custom profile field 1 ('required' not ticked): uses regex with [a-zA-Z] -> unintentionally 'required'
Custom profile field 2 ('required' not ticked): does not use regex -> works as advertised as not being 'required'
Immediately after deleting the regex of Custom Profile Field 1, everything was working fine again!
My guess would be, that the system checks for letters in regex Custom Field and therefore rejects an empty field?
I mean it mages sense regarding the regex, but why is a NULL entry being parset at all?
And if the field isnt enabled on the registration page, this is even more dangerous imho.