Is there a way to validate the city name for a location based on the zip code if it exists in the form? I am trying to maintain valid city names in my location set without restricting my users from entering in a city name. I did a small hack where I altered where you check if there is a city name entered, however, this seems to only work on location 1, where you are adding a city for the first time. Editing the node and/or creating a new location breaks this almost immediately, and I'm not entirely sure why. Shouldn't the module validate all the locations if there are changes or additions?

Your prompt assistance would be greatly appreciate.

Mike

Comments

yesct’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +location validation

I'm a little confused about the request.
Do you want the city automatically filled in based on the zip code?

This sounds a little like a user interface improvement, might involve re-ordering the fields to present the zip code first, then an ajax call to fill in the city?

Could you post your hack, that might help us understand, and maybe some screen shots or mock ups?

I'll mark this postponed needs more info for now.

Also, tagging.

yesct’s picture

related to #317323: validate user input (state and/or city)

I'm not sure if they are actually duplicates or not.

yesct’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Since this was pretty old, and didnt get a response, marking this closed. Please reply if still interested.