cancel
Showing results for 
Search instead for 
Did you mean: 

Validation message not showing.

Validation message not showing.

Hi All,

 

When I try to add  a new shipping address in the checkout page the required validation message for the firstname and lastname field is not showing but for all others are showing. This happens for loggedin customers only. Any Idea ?
I added required field validation in LayoutPreprocessor.php for firstname and lastname but it is not working. The validation message will be shown when we input some value in the field and then clears. But on submitting the form with empty firstname and lastname the validation messages are not showing.

 

Validation IssueValidation Issue



Thank you

1 REPLY 1

Re: Validation message not showing.

Hi @sayanth_k 

Please check within database :

SELECT * FROM `eav_attribute` where attribute_code = 'firstname'

eav_attribute.png

 

Now check with table 'customer_eav_attribute_website', is_required field set to 1 or not. If not then set to 1.
customer_eav_website.png

It will make you field 'firstname' required on checkout page.

if issue resolved, please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!