Webform Address Module

Events happening in the community are now at Drupal community events on www.drupal.org.
bradpeabody's picture

Hello,

I'm looking at creating a module to standardize the representation of address data (and possibly other related information such as name and phone number) in webforms and provide a base for functionality such as address validation/standardization using an external service, or other external validation.

The problem I'm attempting to solve is that forms which are used by organizations to capture name and address information don't have any specific fields (like the concept of an "address line 1" doesn't specifically exist anywhere) and so adding any kind of re-usable address validation/standardization or other checks becomes rather difficult and have to be hacked in. So the first concept is to create specific webform field types, such as the following:

"Address Line 1"
"Address Line 2"
"City"
"State/Province"
"Postal Code"
"Country"

Then - with these specific field types, additional functionality can be added for things like (I'm thinking of Ajax stuff - not validation on form submit):
* When the user types in a postal/zip code it automatically populates city and state
* Address validation and standardization with a service such as Experian or other
* Possibly dynamic checking of the domain name in an email address.

Am putting together some more details (looking at what other module integration there should be - definitely haven't found anything that is already doing this exactly) - but any initial feedback on this would be appreciated.

Comments

subscribing

scothiam's picture

I'm looking into writing (or finding) a module that will allow me to plug the Addresses module where ever I need those fields (webform)... if that was the 'standard' way method for capturing user data, you could then extend the Addresses module with Ajax validation?

http://drupal.org/project/addresses

Does this sound close to what you are after?

Location module with webform?

sureshg1972's picture

I integrated Location Module (http://drupal.org/project/location) with our application. I used it for a content type that I created. Is there a way to use the location module with webform module? I don't see "location" as a dropdown while creating a webform...

(Same issue with phone cck type as well - can't see that while creating fields for a webform).

Will appreciate any help on this.

subscribe. Thanks!

ycwjjjj's picture

subscribe. Thanks!

More than just addresses

juahoo's picture

This sounds like a great idea. It could be expanded to include other common form segments that might be reused on other forms.

http://drupal.org/project/addressfield_tokens

WendyAWSN's picture

This IS a great idea and for a moment it worked for me! I did the webform, found the address field just fine, even viewed the final form with all the right boxes and pulldown for the country. Then when clicking through the site link to the form, I get this error:
Notice: Undefined index: addressfield in webform_component_include() (line 3528 of /home/wenhut1/test.awsn.com/sites/all/modules/webform/webform.module).
I've got Drupal 7.22, Webform 7.x-3.19, Address Field 7.x-1.0-beta4, Address Field Tokens 7.x-1.3, Entity API 7.x-1.2, Entity tokens 7.x-1.2 and thought this was all I needed. If there is a better module in 2013, please advise. I did look. I'm hoping there is some incompatibility or other simpler fix than trying something in the code. I know what file this is and even where it is, but don't have the code background to fix it that way.

Thanks in advance!
W

You've probably sorted this

adam_b's picture

You've probably sorted this by now - but I think you need the Addressfield Tokens module.

Need Webform addressfield module ?

naveenvalecha's picture

Do we need webform addressfield module to for adding addressfield in webform ?

that combination has bugs and

alienzed's picture

that combination has bugs and throws errors unfortunately

Contributed Module Ideas

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: