We sacrifice by not doing any other technology, so that you get the best of Magento.

We sacrifice by not doing any other technology, so that you get the best of Magento.

    If you want to add maxlength on the checkout street address field then you need to override on file in your theme

    <vendername>/<theme_name>/Magento_Ui/web/templates/form/element/input.html

    Make the above file & add the below code inside it

    <!--
    /**
    * Copyright © Magento, Inc. All rights reserved.
    * See COPYING.txt for license details.
    */
    -->
    <input class="input-text" type="text" data-bind="
    value: value,
    valueUpdate: 'keyup',
    hasFocus: focused,
    attr: {
    name: inputName,
    placeholder: placeholder,
    'aria-describedby': getDescriptionId(),
    'aria-required': required,
    'aria-invalid': error() ? true : 'false',
    id: uid,
    disabled: disabled,
    maxlength: inputName.slice(0,6) === 'street' ? 35 : 'none'
    }" />

    Note: We have tried this in Magento 2.3.7 version, If your version different then take copy this file from the vendor and add the last maxlength

    Fill the below form if you need any Magento relate help/advise/consulting.

    With Only Agency that provides a 24/7 emergency support.

      Get a Free Quote