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 not deleted user 339

Denotes question related to form validation. form validation contain frontend forms, adminhtml forms, UI components based forms

5 votes

Magento2 - How to execute validator on form

if You're trying to validate the form, follow the @Mage2.PRO answer. But as you mentioned in your comment that you're using a source to validate one field using ajax, then, you can use $.validator.val …
R T's user avatar
  • 1,347
2 votes
Accepted

how to add custom validation to product options field?

Found the solution: require(['jquery'], function ($) { var rowId = $('#options_<?php /* @escapeNotVerified */ echo $rowOpId ?>_text'); $(document).ready(function(){ var data = …
R T's user avatar
  • 1,347
2 votes
1 answer
4k views

how to add custom validation to product options field?

I'm trying to add custom validation to the product option, I'm following the tutorial and here it says to add custom validation element to the attribute data-validate like data-validate="{required:tr …
R T's user avatar
  • 1,347