doublesecretagency / craft-googlemaps

Google Maps plugin for Craft CMS - Maps in minutes. Powered by the Google Maps API.
https://plugins.doublesecretagency.com/google-maps/
Other
10 stars 9 forks source link

Support for Required Address subfields #3

Closed lindseydiloreto closed 2 years ago

lindseydiloreto commented 3 years ago

Making an Address field "required" is slightly complex. There are up to six normal subfields, plus the coordinates & zoom fields.

So... which subfields must be completed in order to fulfill the requirement?

address@2x

We can assume the Latitude and Longitude subfields (but not Zoom) should be considered "required". This makes sense, but may not truly account for all scenarios. So ideally, we would like to make the required subfields configurable.

If all goes according to plan, you will be able to decide which subfields are truly "required". By default, only the Latitude and Longitude will be required.

This feature is expected to be released as early as v4.1, or as late as v4.3. If anything changes, I'll post back to this thread!


Migrated from Smart Map: https://github.com/doublesecretagency/craft-smartmap/issues/14

MoritzLost commented 2 years ago

@lindseydiloreto Required subfields would be a great addition!

If all goes according to plan, you will be able to decide which subfields are truly "required". By default, only the Latitude and Longitude will be required.

Just to clarify – will it be possible to make latitude & longitude not required? This is important for our use-case. We're using an address field to enter an address and/or a geolocation. But not all entries have a geolocation, so some leave the coordinates empty (for example, some entries just have a PO box as their address, so no geolocation that makes sense to display on the map).

Maybe this is already part of the plan, just wanted to point it out in case it isn't :)

lindseydiloreto commented 2 years ago

Great news, this is (finally) done! It is now possible to require subfields and/or coordinates in v4.1.4.