Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can I let the users select their city form the pre populated list of cities?
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedThis is not supported by 1.x architecture, will be fixed in 2.x
You will need to implement hook_form_alter() / hook_field_widget_alter() to change the input field into a dropdown field, and then look for next steps.