If an existing contact has a value in the State field, there's no way to remove the value because no "- None -" option is available.

Workaround: I've tried using jQuery to add a "- None -" option, and this does allow me to save the form and delete the state from the address.

I'm attaching a very simple example of an affected webform, as represented by the node_export module.

CommentFileSizeAuthor
webform-export.txt7.87 KBTwoMice
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TwoMice created an issue. See original summary.

TwoMice’s picture

Priority: Normal » Major

Marking "major" since this breaks important functionality and makes it impossible for the user to delete an address. Please adjust the priority if I've misunderstood the priority scheme.

  • colemanw committed 5382a28 on 7.x-4.x
    Issue #2848230 - Ensure state select field has an empty option
    
colemanw’s picture

Status: Active » Fixed

Fixed it.

TwoMice’s picture

Thanks, colemanw!

colemanw’s picture

@TwoMice - no prob. It's now in the stable release I put out yesterday.

Status: Fixed » Closed (fixed)

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