Linked Questions

9 votes
2 answers
16k views

Magento 2 - How to affect street address in checkout forms with layout xml/ui arguments

I'm trying to set a placeholder on street address fields on shipping address form in checkout. Followed this example: http://devdocs.magento.com/guides/v2.0/howdoi/checkout/checkout_form.html I've ...
Daniel Ifrim's user avatar
  • 3,404
7 votes
2 answers
22k views

Magento 2 form validation: minimum/maximum length

I'm trying to add some of the predefined validation to a form element but currently am failing. As fas as I can tell, all the validation rules can be added via classes, but no where does it say how to ...
Valguss's user avatar
  • 85
2 votes
2 answers
2k views

Add html attribute in checkout street address

I need to add maxLength attribute to street line 1 and 2 in the Magento 2 check out page. How can I do this Magento 2? Can this be done from theme without creating a new module?
Saroj's user avatar
  • 477
2 votes
1 answer
6k views

Change the checkout form field classes and names

I am trying to figure out how to customize the checkout form by changing classes because I want to stylize it with bootstrap instead of the default Magento styles. I don't see them defined anywhere ...
Yamaha32088's user avatar
3 votes
1 answer
3k views

Magento 2: How to Set Max Length on Billing Address at Checkout Page?

I have achieved for Shipping Address Magento 2: How to set Max Length for Street Address? Struggling with Billing Address on domain.com/checkout/#payment My Payment Method is Bank Transfer. I have ...
Jackson's user avatar
  • 9,909
0 votes
2 answers
3k views

Magento 2 how can i limit character (max.40) for shipping Address street in Checkout?

We have the Problem, some Customers add a too long Shipping Address Street. How can i limit this in Checkout Step 1?
FloWord's user avatar
  • 155
2 votes
1 answer
3k views

Magento 2: How to add Class on Checkout Page?

I would like to add below class on "Firstname" class="validate-length minimum-length-10 maximum-length-100" It should be applied on Checkout Page. domain.com/checkout/ Need to override file ...
Jackson's user avatar
  • 9,909
3 votes
1 answer
850 views

Magento 2 manipulate shipping address fields in chekout via knockout.js

i already know how to add new field to shipping address form in checkout, but i need to modify the behavior of some fields. For example: there is a checkbox "Deliver to Packing station"; if checkbox ...
Styopchik's user avatar
  • 177
1 vote
1 answer
516 views

Add html attribute maxlength to street input field in magento 2 checkout page

How to add new html attribute maxlength="10" to street input field on shipping address form. Thanks
Pradeep Sanku's user avatar
0 votes
0 answers
598 views

Checkout page street address filed custom validation

How can I set min_text_length of street address field on the checkout page to 2? I have referred the below link Magento 2: How to set Max Length for Street Address? but it doesn't work!
YDF's user avatar
  • 193
1 vote
1 answer
401 views

How to add maxlength to street address column in backend via data patch

I would appreciate any help on how to add maxlength to street address column in backend via data patch
Felix's user avatar
  • 11