title: How Remove Required Validation at Conditional Checkout Field at Woocommerce
body: <p>I use     conditional checkout fields as given at <a href="https://stackoverflow.com/questions/37099213/conditionally-unset-checkout-field-in-woocommerce/43172109#43172109">Conditionally unset checkout field in woocommerce</a> .
  But, It doesn't  remove required validation fields?
  How can I pass conditional statement within "if (true)" to remove required validation ?
   At the other words, how can I check which option is selected? 
  Regards</p>
  
  <pre><code> if( true ){ // pass conditional statement here
       unset($fields['billing']['add_house_name']);  //  remove field
       $fields['billing']['add_building_name']['required']   = false; //            remove required validation
          }                   
          return $fields;
  </code></pre>