- Posts: 241
- Thank you received: 5
Date of Birth has no validation
- cberry1971
-
Topic Author
- Offline
Less
More
12 years 1 month ago #176878
by cberry1971
Date of Birth has no validation was created by cberry1971
-- url of the page with the problem -- : wodrocket.com
-- Error-message(debug-mod must be tuned on) -- : 500 - An error has occurred.
DateTime::__construct() [datetime.--construct]: Failed to parse time string (1985-15-03) at position 6 (5): Unexpected character
As you can see in the screenshot, we have a custom field asking the user for a date of birth. It uses a simple date picker and suggests a default date (to show user proper format).
However some users don't use the date picker or follow the format. This then creates a problem for the server when trying to edit user data. A error is thrown.
The validation must be in place to address this as the "allow" field is "Only Past Dates" but a inproper format is in fact not a past or future date.. it is not a date at all.
Any advice? Thanks.
-- Error-message(debug-mod must be tuned on) -- : 500 - An error has occurred.
DateTime::__construct() [datetime.--construct]: Failed to parse time string (1985-15-03) at position 6 (5): Unexpected character
As you can see in the screenshot, we have a custom field asking the user for a date of birth. It uses a simple date picker and suggests a default date (to show user proper format).
However some users don't use the date picker or follow the format. This then creates a problem for the server when trying to edit user data. A error is thrown.
The validation must be in place to address this as the "allow" field is "Only Past Dates" but a inproper format is in fact not a past or future date.. it is not a date at all.
Any advice? Thanks.
Please Log in or Create an account to join the conversation.
12 years 1 month ago #176901
by nicolas
Replied by nicolas on topic Date of Birth has no validation
Hi,
Please use the advanced date picker instead of the simple date picker.
Please use the advanced date picker instead of the simple date picker.
Please Log in or Create an account to join the conversation.
- cberry1971
-
Topic Author
- Offline
Less
More
- Posts: 241
- Thank you received: 5
12 years 1 month ago #176943
by cberry1971
Replied by cberry1971 on topic Date of Birth has no validation
Ok. now it will not validate... it will simply ignore. Example:
1. go here: www.wodrocket.com/index.php?option=com_h...ct&task=show&cid=535
2. click "add to cart"
3. awesomescreenshot.com/0693q779dd
1. go here: www.wodrocket.com/index.php?option=com_h...ct&task=show&cid=535
2. click "add to cart"
3. awesomescreenshot.com/0693q779dd
Please Log in or Create an account to join the conversation.
12 years 3 weeks ago #177929
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Date of Birth has no validation
Hi,
Your field is not required ; so if the user put something non valid, it will empty the field and if the field is not required, it will continue.
Regards,
Your field is not required ; so if the user put something non valid, it will empty the field and if the field is not required, it will continue.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds