Linked Questions

1
vote
0answers
34 views

how to validate custom filed in admin in magento 2.1? [duplicate]

I want to validate a custom field in admin so how to do that validation in magento 2.1?
4
votes
1answer
5k views

How Can I apply server side validation in magento 2

I am new to magento 2, and I want to apply server side validations, Can anyone please help me, Or suggest me how to apply. I have searched many links for this but i didnot understand. Here is my phtml ...
11
votes
2answers
2k views

Magento 2 checkout custom field validation

Magento2 checkout - what is the best method to add validation for my custom checkout field which depends on selected shipping method? For e.g. I am adding field to address form in LayoutProcessor ...
3
votes
3answers
2k views

How to add phone mask to checkout page in magento2?

I need to add a mask to telephone on a checkout page, like +9-(999)-999-99-99.
1
vote
0answers
850 views

magento2 admin form validation

Could somebody help me to apply form validation directly in admin html files? Here is my code for example: <form method="post" id="commercial_invoice_create_form" name="...
0
votes
1answer
375 views

Magento 2 remove class required in edit.phtml

I have problem with postcode field in magento 2. Somewhere magento remove class required from <div class="field zip required test"> <label class="label" for="zip"><span><...
0
votes
1answer
301 views

How to add custom validation for admin form in Magento 2?

I want to add custom validation in the text box in Magento 2. How I can do it?
2
votes
1answer
115 views

uiForm validation?

I found this list validation rules: Magento 2 - Form Validation How to use above list of validation rules in uiForm-uiComponent. Can I add it inside xml <field> tag? or at least how to set ...
0
votes
1answer
129 views

JS VarienForm in Magento 2

Is there a way to update this code to work with Magento2? I believe VarienForm has been depreciated in Magento2 but I can't find a similar JS constructor to get the object. var AddToCartForm = new ...
0
votes
0answers
85 views

Force all Caps/Uppercase on Magento2 Registration Form

I am looking for the proper way to force the Magento 2.3 registration form to submit all registrations in all caps. I have tried the text-transform:uppercase with no luck. I am thinking that Magento ...
1
vote
1answer
61 views

I want to add jquery validation to my form ! How can i do it?

I am using magento's inbuilt luma theme to practise and i am not able to understand where exactly is js written how is the flow ? This is my basic view page. And is working fine i want to add jquery ...