Magento – Magento 2 : Terms and Condition validation not working on checkout page

magento2onepage-checkoutterms and conditionsvalidation

I moved terms and condition functionality in checkout order summary block.

But, There are no any validation working before click on place order button.

I also added agreement validation code in my custom module checkout_index_index.xml

checkout_index_index.xml :

<item name="agreements" xsi:type="array">
    <item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/checkout-agreements</item>
    <item name="sortOrder" xsi:type="string">100</item>
    <item name="displayArea" xsi:type="string">before-place-order</item>
    <item name="dataScope" xsi:type="string">checkoutAgreements</item>
    <item name="provider" xsi:type="string">checkoutProvider</item>
</item>
<item name="agreements-validator" xsi:type="array">
    <item name="component" xsi:type="string">Magento_CheckoutAgreements/js/view/agreement-validation</item>
</item>

enter image description here

How to do it ?

Please help me.

Thanks.

Best Answer

Check my following answer regarding the same issue you were facing:

Validation of the terms and conditions (custom module)

Hope it helps you.

Related Topic