Is it possible to add French department list to the default options of webform ?

The yml lis is here https://gist.github.com/gurvan-merhand/264eb22cbf74a4f60c5f2211202fd6a7

The yml configuration file is attached to the issue (or herehttps://gist.github.com/gurvan-merhand/467db3b225c610e00ce49f63fc89e01b)

I could create a patch if needed

Regards

Comments

gurvan created an issue. See original summary.

gurvan’s picture

StatusFileSize
new1.81 KB
jrockowitz’s picture

I think this list of options is very useful but too specific to be included in the Webform module, so I created this documentation page where additional options can be listed.

  • jrockowitz committed bfd0dbf on 8.x-5.x
    Issue #2845228 by gurvan: Add french departments list options
    
jrockowitz’s picture

Status: Active » Fixed

I think this list of options is very useful but too specific to be included in the Webform module, so I created this documentation page where additional options can be listed.

Status: Fixed » Closed (fixed)

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

gvigroux’s picture

The documentation is not available anymore (404) How to import additional options?

gvigroux’s picture

I looked at the documentation and it's still not clear to me :). I found the section with the yml file but I don't know how to
add webform.webform_options.french_departments.yml into the autocomplete list.

Should I add the file to the "config\install" directory and install webform again?

Enlarging the discussion, I need to add a custom autocomplete text field: the list of France' cities which are today in my database in a specific table. What is the best way to do it with Webform ?

1) Should I create a yml file (an do the same process as above - when I understand it :))
2) can I hook the autocomplete?
3) can I create the plugin/module to add my autocomplete field?

dirku’s picture

I'm struggling with the same issue. I need to create a series of very long 'options', and I definitely don't want to go through the form
/admin/structure/webform/settings/options/manage/add

How do I include the .yml-files as options? A brief clarification would be much appreciated, I'm sure it's easy.
TIA, Dirk
PS Webforms is really great!