Disable field validation of custom line items when cart is modified How to disable custom line item's field validation when line item is removed from cart?

My line item has a required field and if product/line item is removed from cart it still tries to validate it.
This causes form errors which isn't required.
You need to search for this function (since your not giving full information about that custom module you have)

function nameOfModule_form_validate(&amp;$form_state, &amp;$form_id){


You can search inside that function where it is doing the validation