Tweeted twitter.com/StackMagento/status/948762601957273606
2 Magento spelling corrected
source | link

Magneto Magento 2 checkout custom field validation

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 where I can specify validation rules. I need to make this field required if my custom carrier is selected. My goal is to prevent the user from going to the next step if my custom field is not filled. I know I am able to add custom validations before order placement (Review & Payments step) but I need to validate it a step before.

Magneto 2 checkout custom field validation

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 where I can specify validation rules. I need to make this field required if my custom carrier is selected. My goal is to prevent user from going to the next step if my custom field is not filled. I know I am able to add custom validations before order placement (Review & Payments step) but I need to validate it a step before.

Magento 2 checkout custom field validation

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 where I can specify validation rules. I need to make this field required if my custom carrier is selected. My goal is to prevent the user from going to the next step if my custom field is not filled. I know I am able to add custom validations before order placement (Review & Payments step) but I need to validate it a step before.

1
source | link

Magneto 2 checkout custom field validation

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 where I can specify validation rules. I need to make this field required if my custom carrier is selected. My goal is to prevent user from going to the next step if my custom field is not filled. I know I am able to add custom validations before order placement (Review & Payments step) but I need to validate it a step before.