Problem/Motivation

Currently the module supports excludeCountriesoption which takes list of countries to hide however, in many cases user may need to show only few countries and hide all others, the JS library already has onlyCountries option to support this, just need to add implementation in Drupal.

Proposed resolution

Add a checkbox for negate this condition with exclude countries list and when that checkbox is clicked use onlyCountries option instead of excludeCountries

Remaining tasks

  1. Add checkbox in edit field settings.
  2. Update implementation in JS file to use onlyCountries when checkbox is selected.
  3. Write tests.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Shriaas created an issue. See original summary.

shriaas’s picture

Issue summary: View changes

saidatom made their first commit to this issue’s fork.

shriaas’s picture

Status: Active » Needs review

miguel.leal made their first commit to this issue’s fork.

saidatom’s picture

Status: Needs review » Needs work

  • saidatom committed e31850d on 3.x
    Issue #3279207: Add support for onlyCountries
    
saidatom’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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