Answers.Body: <p>Usually when a javascript element fails to work on your page, it's caused by a general javascript failure on your website. This can be caused by incompatible plugins or themes, etc. So the problem may have nothing to do with the state/province field or webform-civicrm; if Javascript has crashed, then it can't run. To narrow down the problem, open up the console in your webbrowser (F12) and look for any error messages. If the error message contains the name of a plugin, try disabling it. Or take a screenshot of the error and add it to your question.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-15T16:29:00.647Z
Answers.LastActivityDate: 2018-05-15T16:29:00.647Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>Our developer updated the jQuery version and this seemes to have solved the javascript errors on the page.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-21T04:00:43.980Z
Answers.LastActivityDate: 2018-05-21T04:00:43.980Z
Answers.UserDisplayName: Vish Ramakonar
Body: <p>We are running Civi 4.7.29. with Drupal.  We have a webform using Drupal webform integration which populates civicrm fields.</p>
  
  <p>we noticed that the state drop down was empty when previously it was working correctly.</p>
  
  <p>Has anyone come accross this issue?</p>
  
  <p>I checked the state province table in civicrm and it is not empty.</p>
  
  <p>Thanks
  <a href="https://i.sstatic.net/v7Gw1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/v7Gw1.png" alt="enter image description here"></a></p>
  
  <p>Yes there is an error on the page.  Please see below.  How do I fix this please?
  <a href="https://i.sstatic.net/cGETF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/cGETF.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-14T11:24:50.073Z
Comments.Text: can you add some screenshots?
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-14T12:57:55.360Z
Comments.Text: yes screenshots please!
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-14T15:05:33.837Z
Comments.Text: Select list in Webform CiviCRM could have a setting which is called live/static. If static is selected you can enter the possible staes yourself. Also a state could be selected after a country is selected.
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-15T16:25:47.077Z
Comments.Text: @JaapJansma I don't think webform-civicrm will allow that field to be static as it is an ajax field. Vish can you please open your browser console (F12) refresh the page and then see if any error messages appear?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-17T16:23:48.267Z
Comments.Text: `webformProp()` definitely **is** a function in all versions of Webform 4 that I'm aware of. What version of Webform and Webform-CiviCRM are you using?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-18T01:53:16.280Z
Comments.Text: Hi Coleman.  we are using Webform Version: 7.x-4.16 and Webform CiviCRM Version: 7.x-4.20. I believe this is the latest version?
Comments.UserDisplayName: Vish Ramakonar
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-05-18T07:55:32.537Z
Comments.Text: Our developer updated the jQuery version and there are no javascript errors anymore on the page.  However the address fields (street, postal code, Country, State etc) are not being saved in Civi.  Any idea why?
Comments.UserDisplayName: Vish Ramakonar
Tags: <drupal><webform-civicrm><addresses>
Title: State dropdown empty on form with Drupal webform integration
ThreadText: # State dropdown empty on form with Drupal webform integration
  
  (Asked by: username_0 on 2018-05-14)
  
  We are running Civi 4.7.29. with Drupal. We have a webform using Drupal webform integration which populates civicrm fields.
  
  we noticed that the state drop down was empty when previously it was working correctly.
  
  Has anyone come accross this issue?
  
  I checked the state province table in civicrm and it is not empty.
  
  Thanks
  [![enter image description here](https://i.sstatic.net/v7Gw1.png)](https://i.sstatic.net/v7Gw1.png)
  
  Yes there is an error on the page. Please see below. How do I fix this please?
  [![enter image description here](https://i.sstatic.net/cGETF.png)](https://i.sstatic.net/cGETF.png)
  
  **Tags:** drupal, webform-civicrm, addresses
  
  > **Comments:**
  > **username_1**: can you add some screenshots?  
  > **username_2**: yes screenshots please!  
  > **username_3**: Select list in Webform CiviCRM could have a setting which is called live/static. If static is selected you can enter the possible staes yourself. Also a state could be selected after a country is selected.  
  > **username_4**: @JaapJansma I don't think webform-civicrm will allow that field to be static as it is an ajax field. username_0 can you please open your browser console (F12) refresh the page and then see if any error messages appear?  
  > **username_4**: `webformProp()` definitely **is** a function in all versions of Webform 4 that I'm aware of. What version of Webform and Webform-CiviCRM are you using?  
  > **username_0**: Hi username_4.  we are using Webform Version: 7.x-4.16 and Webform CiviCRM Version: 7.x-4.20. I believe this is the latest version?  
  > **username_0**: Our developer updated the jQuery version and there are no javascript errors anymore on the page.  However the address fields (street, postal code, Country, State etc) are not being saved in Civi.  Any idea why?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_4 on 2018-05-15. Score: 3
  
  Usually when a javascript element fails to work on your page, it's caused by a general javascript failure on your website. This can be caused by incompatible plugins or themes, etc. So the problem may have nothing to do with the state/province field or webform-civicrm; if Javascript has crashed, then it can't run. To narrow down the problem, open up the console in your webbrowser (F12) and look for any error messages. If the error message contains the name of a plugin, try disabling it. Or take a screenshot of the error and add it to your question.
  
  
  ---
  
  ### Answer by username_0 on 2018-05-21. Score: 1
  
  Our developer updated the jQuery version and this seemes to have solved the javascript errors on the page.
  
  
  ---
  
  