Title: Uncaught ReferenceError: term is not defined
Last modified: May 6, 2022

---

# Uncaught ReferenceError: term is not defined

 *  Resolved [lostlife](https://wordpress.org/support/users/istipb/)
 * (@istipb)
 * [4 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-term-is-not-defined/)
 * [screenshot of the problem](https://ibb.co/kHYWz1J)
    Hello it shows the error
   above in console when i click the City option field. When I select another State
   option from State field it doesnt change the City Option field. If i click the
   City option again then it shows the updated City list. How can i solve it? I 
   am using flatsome 3.15.4 and WooCommerce 6.4.1.
 * Thanks.
    -  This topic was modified 4 years ago by [lostlife](https://wordpress.org/support/users/istipb/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Condless](https://wordpress.org/support/users/condless/)
 * (@condless)
 * [4 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-term-is-not-defined/#post-15624007)
 * Hi,
    This error can be ignored, this is the expected behaviour of the plugin.
 *  Thread Starter [lostlife](https://wordpress.org/support/users/istipb/)
 * (@istipb)
 * [4 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-term-is-not-defined/#post-15624521)
 * [@condless](https://wordpress.org/support/users/condless/) it would be great 
   if the city field resets when state field option changes.
 *  Thread Starter [lostlife](https://wordpress.org/support/users/istipb/)
 * (@istipb)
 * [4 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-term-is-not-defined/#post-15624663)
 * And how can i make the State Mandatory. It shows as optional now.
 *  Plugin Author [Condless](https://wordpress.org/support/users/condless/)
 * (@condless)
 * [4 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-term-is-not-defined/#post-15624919)
 * 1. Please enable the ‘State Autofill’ option, the state will be populated on 
   the order details based on the selected city (regardless of the selected state).
 * 2. The customer should select the state first and only then the city field, if
   you still need to reset the city field when the state is changing see the plugin
   docs ‘How to reset the city field if different state was selected?’.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Uncaught ReferenceError: term is not defined’ is closed to new replies.

 * ![](https://ps.w.org/cities-shipping-zones-for-woocommerce/assets/icon-256x256.
   png?rev=2303879)
 * [Cities Shipping Zones for WooCommerce](https://wordpress.org/plugins/cities-shipping-zones-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cities-shipping-zones-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cities-shipping-zones-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/cities-shipping-zones-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cities-shipping-zones-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cities-shipping-zones-for-woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Condless](https://wordpress.org/support/users/condless/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/uncaught-referenceerror-term-is-not-defined/#post-15624919)
 * Status: resolved