Zip Code autopopulate

This topic contains 5 replies, has 3 voices, and was last updated by  Al Sommer 4 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #521613

    Al Sommer
    Expired Member
    Post count: 27

    I’d like to have the Zip Code field autopopulated when the user enters the City. I have a .csv file with every City and Zip Code in the US. The scope of my site is just in the US at this time.

    I also don’t think I need the map that is below the zip code. Once the user enters their address that will be all I need. Can the map be removed?

    Please see the attachment.Thank you.
    Al

    GD version: 2.0.0.70
    WP version: 5.3.1

    #521619

    Kor
    Moderator
    Post count: 16516

    Hi Al Sommer,

    Thanks for your post. You can use the custom CSS code below to remove it. Insert into WP > Appearance > Customize > Additional CSS

    #geodirectory-add-post #geodir_address_map_row,
    #geodirectory-add-post #geodir_address_zip_row {
        display:none;
        }
    #521734

    Alex Rollin
    Moderator
    Post count: 27815

    Hi Al,

    when a user enters a map location, the zip code, if available, will be fetched from the Maps API of your choice. All of the location data like city names comes from the Maps API of your choice.

    You can hide maps by removing the GD Map shortcode on the various templates:

    https://wpgeodirectory.com/docs-v2/templates/

    #523133

    Al Sommer
    Expired Member
    Post count: 27

    Kor,

    Thank you. I was able to remove the map with the additional CSS (I need to keep the zip code). Getting closer to the final form layout…..

    Next questions if you can provide further assistance:
    1) Is there CSS that removes the ‘Select Map View’ field. I don’t believe it’s necessary for my form. My goal is to have the user enter their full address (United States addresses).
    2) Can the ‘Zip Code’ field be marked as Required and a maximum of 5 digits?

    Please see the attachment.

    Thanks again,
    Al

    #523137

    Kor
    Moderator
    Post count: 16516

    Hi Al Sommer,

    Thanks for your reply. Please allow me to answer your questions accordingly.

    1. You can remove the “Select Map View” in the “Custom Field” > “Address Field” https://wpgeodirectory.com/docs-v2/places/custom/ . Refer to the attached screenshot.

    2. No, this can’t be done without customization.

    #523140

    Al Sommer
    Expired Member
    Post count: 27

    Thanks, got it.

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket