How to Add Custom JS Validation Rule in Magento 2

You can add another approval rule with the information approve characteristic of the HTML label utilizing Magento.

As a matter of course Magento mage/validation.js document used to set out-of-the-container custom standards for the Magento. A large portion of the times custom guidelines are utilized in the information labels. however you can apply to frame tag, select tag as well as any HTML tag.

Sentence structure:

$.validator.addMethod(argument1, argument2, argument3) used to characterize custom approval rule in Magento.

References:-


























Comments

Popular posts from this blog

FAQ Schema Generator

10 Native Advertising Statistics You Need to Know [2023]

Solved: Error 1273 Unknown Collation utf8mb4_0900_ai_ci in MySQL