Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By ETENTION on
Hi
I ran into problem where custom Line Item's Address field is being validated when product/line item is removed from the cart.
This is unnecessary since Line Item is being removed so there's no need for validation of the removed line item nor for the line items that stay on cart.
The form id is views_form_commerce_cart_form_default
and the validation is called from views_form_views_form_validate
.
How could I remove validation from this field only on "remove event"?
Comments
Solved
Solution found: https://www.drupal.org/node/1895682