Title: Problem Required Field, Optional Label
Last modified: June 12, 2019

---

# Problem Required Field, Optional Label

 *  Resolved [moultrex](https://wordpress.org/support/users/moultrex/)
 * (@moultrex)
 * [7 years ago](https://wordpress.org/support/topic/problem-required-field-optional-label/)
 * Hello. I try to make the State field required. When i do this at the checkout
   the label name is still State (optional)
 * But if i disable your plugin add this snippet
 *     ```
       add_filter('woocommerce_get_country_locale', 'custom_nz_locale');
       function custom_nz_locale($locale){
         $locale['GR']['state']['required'] = true;
         return $locale;
       }
       ```
   
 * The state field label optional is removed and it says State * with an asterisk
   just like it should work.
 * So the problem is with your plugin. Although you set the field required and functionally
   is required the label doesn’t change and the customers confused.

Viewing 1 replies (of 1 total)

 *  [Adrianna](https://wordpress.org/support/users/adriannagr/)
 * (@adriannagr)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/problem-required-field-optional-label/#post-11649025)
 * Hi,
 * Let’s continue the topic in the thread on our official support forum, where you
   wrote.

Viewing 1 replies (of 1 total)

The topic ‘Problem Required Field, Optional Label’ is closed to new replies.

 * ![](https://ps.w.org/flexible-checkout-fields/assets/icon-256x256.gif?rev=2522628)
 * [Flexible Checkout Fields for WooCommerce - WooCommerce Checkout Manager](https://wordpress.org/plugins/flexible-checkout-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-checkout-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-checkout-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-checkout-fields/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Adrianna](https://wordpress.org/support/users/adriannagr/)
 * Last activity: [6 years, 12 months ago](https://wordpress.org/support/topic/problem-required-field-optional-label/#post-11649025)
 * Status: resolved