0

I need to limit the commerce_customer_address field to 10 cities. You should be able to choose a city from a select list and this should then set the correct postcode. It also needs to be ajaxified so that the postcode updates dynamically. Possible? How?

1 Answer 1

0

The commerce_customer_address is an Address field. You can add your behavior by implementing a custom format plugin, like the one in the addressfield_example submodule.

1
  • Thanks! That addressfield_example was exactly what I needed.
    – iamfredrik
    Commented Feb 18, 2017 at 9:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.