Is it possible to hide specific address fields?

By: Bryan Sattler | Asked: 01/28/2023
ForumsCategory: How-toIs it possible to hide specific address fields?
Bryan Sattler asked 2 years ago
I just want to display the zip/postal input from the address field set. Is it possible to hide all of the other fields?
1 Answers
Walter JonesWalter Jones answered 2 years ago
When you say display, are you talking about in a view or a form?
Bryan Sattler replied 2 years ago

Hi Walter, thanks for your reply! I'm referring to a form.

Walter JonesWalter Jones replied 2 years ago

I’m not sure you can only show a zip field. Are you collecting the full address somewhere else? You may just want to have a text field only and collect zip codes that way. Or are you using the auto location feature and just want the zip code?

Walter JonesWalter Jones replied 2 years ago

I’m not sure you can only show a zip field. Are you collecting the full address somewhere else? You may just want to have a text field only and collect zip codes that way. Or are you using the auto location feature and just want the zip code?

Bryan Sattler replied 2 years ago

I'm only looking to display the zip field and am not collecting the rest of the address. I thought of using a text field but was looking to use the address autocomplete feature to help pre-populate the field so users don't have to manually type it.

Bryan Sattler replied 2 years ago

I was able to add a numeric field and change autocomplete to postal code but I don't see it autocompleting for me.

Bobby Clapp replied 2 years ago

Use CSS and find the appropriate elements to set to display:none.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right