Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Address fields are required.
Previous versions did not require fields to be populated.
Is this currently 'normal' function?
Comment | File | Size | Author |
---|---|---|---|
Address Fields.png | 8.04 KB | guster-von |
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedYes, that is the correct behavior.
The US mandates that those fields are always present in a postal address.
Comment #2
emilorol CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: emilorol commentedPerfect, that works.
In case of someone having the same issue:
Comment #5
bojanz CreditAttribution: bojanz commentedAlso related: #2396975: Add an option for allowing incomplete data to be saved.
Comment #6
rjleigh CreditAttribution: 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 CreditAttribution: fultonchain commented#4 did the trick for me. Thanks, emilorol.
Comment #8
Herr Lehmann CreditAttribution: 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 CreditAttribution: bojanz commentedYes, the option will be added in #2396975: Add an option for allowing incomplete data to be saved.
Comment #10
shrimphead CreditAttribution: 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 CreditAttribution: 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.