Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Required Address subfields #3

Closed
lindseydiloreto opened this issue Feb 1, 2021 · 2 comments
Closed

Support for Required Address subfields #3

lindseydiloreto opened this issue Feb 1, 2021 · 2 comments
Labels
Feature Request New feature or request
Milestone

Comments

@lindseydiloreto
Copy link
Collaborator

lindseydiloreto commented Feb 1, 2021

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: doublesecretagency/craft-smartmap#14

@MoritzLost
Copy link

@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
Copy link
Collaborator Author

lindseydiloreto commented Mar 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants