Closed (fixed)
Project:
Address Field
Version:
7.x-1.0-rc1
Component:
Address formats
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2014 at 20:25 UTC
Updated:
25 Feb 2015 at 16:37 UTC
Jump to comment: Most recent
Comments
Comment #1
bojanz commentedYes, that is the correct behavior.
The US mandates that those fields are always present in a postal address.
Comment #2
emilorol commentedHi,
I can see the benefits on having those field forced to be populated in order to have a valid US address, but I am using this module in a lead generation form and more than often the agent only gets the zip code of the client and the address is later on added when the agent call the client back.
Having this module behave this way breaks my workflow, if there any ways to disable this feature and make it work like it was before?
Thank you.
Comment #3
bojanz commentedYou're free to implement an alter hook like the one I showed in #2282817: How to make only the country required, disabling the safeguards that this module adds.
Comment #4
emilorol commentedPerfect, that works.
In case of someone having the same issue:
Comment #5
bojanz commentedAlso related: #2396975: Add an option for allowing incomplete data to be saved.
Comment #6
rjleigh commentedWhile I understand the concept of a complete valid address, the problem is that these fields are required even when the addressfield as a whole is not a required field. So in non-commerce scenarios where collecting an address might be optional, this feature would defeat that use.
I have no problem using the hook (just did), and even modifying it for specific behavior, but there have to be tens of thousands of users of this module who would not be able to do that.
Comment #7
fultonchain commented#4 did the trick for me. Thanks, emilorol.
Comment #8
herr lehmann commented#4 also worked fine for me! I think this should be added as an option of Address Field config!
Comment #9
bojanz commentedYes, the option will be added in #2396975: Add an option for allowing incomplete data to be saved.
Comment #10
shrimphead commented#4 also worked for me.
Why is there a 'Required field' tag if it set to required by default? That has caused us some big headaches today. Thank you for the form alter.
Comment #12
jpsalter commented#4 works perfectly. We also realized that if you are collecting more than one address you must have the country default to 'none' otherwise each edit/save cycle adds another address with only a country.