While helping a client today, I noticed a feature that would be really helpful in this module.
The client had created a custom option list and wanted to use this as a basis to create another list containing the same options as well as new ones. Upon first glance, the ideal workflow would be:

  • navigate to Webform >> Settings >> Options
  • duplicate existing option list
  • edit / change title of duplicated option list
  • add new options to duplicated option list

The current workaround (as far as I could work out) involves creating a new option list, adding one option, then going to the existing list, copying the Source (YAML) and pasting that over the Source (YAML) of your new option list. Unless I am missing something?

Definitely a nice-to-have!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aaron.hirtenstein created an issue. See original summary.

jrockowitz’s picture

Very easy to do and it would be nice features.

  • jrockowitz committed e09e2cf on 2875688-duplicate-options
    Issue #2875688: Add ability to duplicate Option list
    
jrockowitz’s picture

I like easy tickets. Right now, there are too many hard ones in the issue queue.

Attached is a patch. If all the tests pass, I will commit it.

jrockowitz’s picture

Status: Active » Needs review

  • jrockowitz committed 4c52bcc on 8.x-5.x
    Issue #2875688 by jrockowitz: Add ability to duplicate Option list
    
jrockowitz’s picture

I committed the patch. Please download and test the latest dev release.

jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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