I create a dropdown of previous addresses to be inputted into the address field, which is in each line item(commerce). It works perfectly if the address being inputted has the same country as the default one in the form. If the country is different however, it refreshes the form and resets it to the default country & state/province.

Any ideas?

Comments

jasen’s picture

Nevermind, I figured it out. Turns out that Drupal doesn't like it when you try to force the #options lists, so I simply had to use the form API to make the element that was giving me a problem this attribute: '#validated' => TRUE

johnv’s picture

Status: Active » Closed (works as designed)
johnv’s picture

Status: Closed (works as designed) » Closed (duplicate)