Questions tagged [custom-validation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
23 views

Magento 2: Onepage checkout shipping address ZIP Code custom data validation. Zip codes from the databse

I am absolutely new with Magento. Have basic knowledge with custom modules and front-end layout updates. I need to insert a custom validation for the ZIP Code in my checkout page (One-page checkout). ...
0
votes
1answer
32 views

Magento 2 - Extend custom validation / add own validation rule

In Magento 1, I used the below javascript code inside of a template to add my own validation rule: // Add new validation class for the name. Also supports names with two hypen in the name e.g. Hans-...
4
votes
0answers
64 views

How to add custom validation for Street 1 in Checkout page > Add shipping address in Magento 2.2.8?

How to add custom validation for Street 1 in Checkout page > Add shipping address in Magento 2.2.8 ? I want to apply custom validation on Street 1 field and I have tried below things. Method 1 I ...
3
votes
1answer
464 views

Magento2: custom validation Error “Uncaught TypeError: Cannot read property 'call' of undefined”

In my custom validation rules shows ' Uncaught TypeError: Cannot read property 'call' of undefined' errors!!!... . how can i do custom logic and proper validation ? Here is my Code app/...
4
votes
0answers
29 views

How to add custom validation on checkout page before shipping method rendering in magento 2

How to add custom validation on checkout page before shipping method rendering and if validation success then only show shipping methods or else show error message. I have already implemented this ...
0
votes
2answers
74 views

Validation for file type not working in File Upload in Magento 2 Store Configuration

I am following below Article to upload file in store configuration: https://www.mageplaza.com/devdocs/how-file-upload-sytem-configuration-magento-2.html I have defined custom backend model as ...
8
votes
3answers
608 views

Add Custom Validation Street Address Field in backend Magento 2

I Want To Set Minimum Length Value For Street Address Field On Admin Side I want to set min_text_length = 5 For Street Address Field In Customer Address Form I am Trying To Update Attribute but ...