Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 46416

Denotes questions related to validation like form validation, jQuery validation, prototype validation, server-side validation.

2 votes

Toggle "required/not required" field in checkout

Use the below code for country wise validation. It will check every time when you proceed to payment step Or you can empty value every time after the country change. … define([ 'jquery', 'Magento_Ui/js/lib/validation/utils' ], function ($, utils) { "use strict"; return function (validator) { validator.addRule( 'validate-area-required …
Ketan Borada's user avatar
  • 2,653
0 votes

Magento 2 checkout custom field validation

yes it is possible by changing in Magento_Checkout/js/model/shipping-save-processor/default.js I have added field confirm email which must same as email and it's required field in the checkout, you c …
Ketan Borada's user avatar
  • 2,653
11 votes
Accepted

Add Custom Validation Street Address Field in backend Magento 2

You Can do it by Script and update validation within it.You have to change 'validate_rules' => '{"max_text_length":255,"min_text_length":5}', You can change it directly from DB you have to do it carefully …
Ketan Borada's user avatar
  • 2,653