Installed webform 8.x-5.x-dev on 2017-01-25 via Composer. Updated 2017-01-26.
Enabled the module and had a great time playing with forms. Very nice job with all of the config options through the UI.
Added an Address field (Webform component) to the form and realized that State/Province select field would not populate with options.

Address Module Attempt: I Failed

I thought that I may have missed something so jumped the gun and installed the latest dev of the Address module. That was a mistake as the Address module had taken over the Webform Address component and you could not configure it through the webform interface. I'll have to look into this more to see if the Address module has options to not apply to certain forms/fields. Uninstalled the Address module.

Clue

Under Recent Log Messages I found a clue.
Type: Webform
Location: DOMAIN.TLD/admin/structure/webform/manage/FORM_NAME_HERE/element/address/edit?_wrapper_format=drupal_modal
Message: "Options state_province_names do not exist."

Webform: Options

Webform: Options is empty.
Webform 8.x-5.x Options page has a French Departments example.
Found the webform options YML files in the SITE-INSTALL/modules/contrib/webform/config/install directory.
Search the Recent Log Messages by Type: Webform
Note: webmaster is the username

webform 	Options industry do not exist. 	webmaster
webform 	Options gender do not exist. 	webmaster
webform 	Options likert_quality do not exist. 	webmaster
webform 	Options likert_quality do not exist. 	webmaster
webform 	Options gender do not exist. 	webmaster
webform 	Options likert_quality do not exist.   webmaster

Within each of the log entries it states something similar to the following:

Type 	webform
Date 	Wednesday, January 25, 2017 - 12:38
User 	webmaster
Location 	http://DOMAIN-NAME.TLD/admin/content
Referrer 	http://DOMAIN-NAME.TLD/node/20
Message 	Options industry do not exist.
Severity 	Notice
Hostname 	IP ADDRESS
Operations 	

Going to install again and report back with what happened!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GreenSkunk created an issue. See original summary.

jrockowitz’s picture

@GreenSkunk You earn today's prize for creating the most helpful ticket, you have given me enough information that I can almost immediately see that there are few problems which are most likely bugs.

I am not sure why the 'Options' (/admin/structure/webform/settings/options/manage) are empty on your system. If you have the Features module installed you could run drush features-import -y webform which should fix this issue.

The conflict with the address module is a major issue that I will need to test and fix.

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)

I download the Address module and there are no conflicts with Webform module's address field.

@GreenSkunk I suspect that the Webform module was only partially installed on your site, which led to the Webform options configuration files never being installed.

GreenSkunk’s picture

I was in the middle of creating this post when you updated it.
Installing Features, dependencies and running the drush command did import the webform options.

Was not able to replicate the OPTIONS missing issue

I was not able to replicate this issue on another site install.

I was able to replicate the Webform Address Component and Address Module issue

Added a Before and After image of the Webform Address Component and then AFTER the same section of the form after enabling the Address module.
Before & After Webform Address Field Component and Address Module
That is what I saw yesterday on a site install.

Installed on a Production website

It doesn't use Webform but will in the future.
Test Webform Address Component without and with Address module

Going to install on 2 other Environments

jrockowitz’s picture

I have installed the Address.module and can't replicate the issue.

Are we using the same module?

Is the Address in 'Example: Elements: Composite' broken?

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Fixed

Any element #type namespace conflicts have been fixed via #2848042: Rework #type shorthand prefix handling.

If you are still having issues with #options or the address element not working when the address.module is installed, please reopen this ticket.

NYSolutions.com’s picture

I do not have address module installed, however I am having same issue, I created a new option called "tech" however the option values are not being saved, log is showing Options tech do not exist.
drush features-import -y did not fix it.
Webform Examples webform_examples Installed 8.x-5.0-beta5
Webform Node webform_node Installed 8.x-5.0-beta5 Changed
Webform Templates webform_templates Installed 8.x-5.0-beta5
Webform webform Installed 8.x-5.0-beta5

jrockowitz’s picture

Status: Fixed » Needs review
FileSize
2.2 KB

  • jrockowitz committed b561ba8 on 8.x-5.x
    Issue #2847133 by jrockowitz, GreenSkunk, NYSolutions.com: Webform...
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch please test the latest dev release.

NYSolutions.com’s picture

I tested latest dev and problem is fixed.
Thank You.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

brooke_heaton’s picture

I had some difficulty figuring out how to get the options set.

In the yaml, the field prepends __options

field_state_province__options: state_names

jrockowitz’s picture

@brooke_heaton Please open a new ticket with broken webform's export configuration.

stevendeleus’s picture

I applied the patch, but the issue still exists.
Do I need to manually enter all the states/provinces?

jrockowitz’s picture

You can probably cut-n-paste the YAML from.

http://cgit.drupalcode.org/webform/tree/config/install/webform.webform_o...

- or-

http://cgit.drupalcode.org/webform/tree/config/install/webform.webform_o...

@vectorbross This ticket has been closed for 8 months. If you need more help you will need to update the latest release of the Webform module and open a new ticket.