Buck Anderson - DNN Professor Member Login
February 08, 2012

ForumsDNN Professor Forums

DotNetNuke Forums | Xmod Forums | Internet Marketing Forums | DNN Professor Product Forums

Product Support and Product Forums Registration


Subject: Zip Code/Postal Code required field
Prev Next
You are not authorized to post a reply.

Author Messages
jakeman35User is Offline

DNN Newbie
DNN Newbie
Posts:7
Send This Member a Private Message

04/05/2010 6:54 PM  

I'm trying to add listings for business located in St. Maarten / St. Martin in Netherlands Antilles. They do not use zip codes there, however Business Directory 6.1 expects a valid zip code.

For example, a valid address in St. Maarten would be 94 Boulevard de Grand Case, Grand Case, Sint Maarten, Netherlands Antilles. This translates to Latitude=18.052592,  Longitude:-63.073633.

Any help would be appreciated.

Jake

 

 

Buck AndersonUser is Offline

DNN Master
DNN Master
Posts:657

Send This Member a Private Message

04/06/2010 9:19 AM  

Hi Jake,

The application is built with the assumption that listings have a zip or some form  of postal code.

This information is used to help Google create a map location.

To make the Postal Code non-required:

1. Open your form using the XMod plain text editor and search for the follwing line:

[validate type="required" text="*" message="Company Info: You must enter a Postal Code" class="dnnpNormalRed" enableclientscript="true" /]

Note: I have replaced arrows with brackets to render the code in this forum post.

By removing the above line from your form code, the postal code will no longer be required.

2. On the admin options portion of the form you can bypass the get coordinates function of the latitude and longitude by manually adding the coordinates you describe above and update the form. 

Reference:

Why Some Addresses Do Not Show On Your Google Map


Buck Anderson - DNN Professor

DNNprofessor.com


http://twitter.com/DNNprofessor


DotNetNuke - XMod Training Coach and XMod MVP


jakeman35User is Offline

DNN Newbie
DNN Newbie
Posts:7
Send This Member a Private Message

04/06/2010 3:34 PM  
Buck,

Thanks, it worked perfectly. FYI, I also removed red asterisk character in Postal Code label since this is not a required field anymore. Here is the corresponding code:

Required field

Jake
jakeman35User is Offline

DNN Newbie
DNN Newbie
Posts:7
Send This Member a Private Message

04/06/2010 3:36 PM  
Oops ... replacing arrows with brackets ... [img height="8" alt="Required field" src="/Portals/0/xmod/packages/BusinessDirectory/asterisk.gif" width="8" align="textTop"/]
You are not authorized to post a reply.
Forums > Product Forums > Business Directory > Zip Code/Postal Code required field



ActiveForums 3.7

Copyright 2004 - 2012 by Jive Media Group LLC. All Rights Reserved.  | Terms of Use | Privacy Statement | Email White Listing | Site Map