PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Address field, change State to 2 letter abbreviation?

  1. John
    Member

    Hi,
    For the advanced field of Address the value of States is the full word. We are trying to connect to an API for donortools.com and to match users we need to have states be the 2 letter all cap abbreviation. Is there a way to alter this State field to be 2 letter value?

    Thanks,

    Posted 11 years ago on Tuesday January 22, 2013 | Permalink
  2. chino
    Member

    Noob (me) answer: looking in the common.php file it looks like it uses the two-letter code when sending the data. Or are you having trouble connecting because it's NOT, in fact, using that two-letter code?

    Posted 11 years ago on Tuesday January 22, 2013 | Permalink
  3. David Peralty

    If you want to have it be a two letter abbreviation, you'll have to create the dropdown yourself instead of using our complex Address field field-type. All my best!

    Posted 11 years ago on Tuesday January 22, 2013 | Permalink
  4. John
    Member

    Thanks for the reply/support.

    Posted 11 years ago on Tuesday January 22, 2013 | Permalink
  5. John
    Member

    We (well my api developer/coder) found and implemented this so now we can use the complex address field with the Donor Tools api which requires the state 2 letter abbreviation.

    http://seoserpent.com/news/gravity-forms-zip-codes-state-abbreviations

    Works for us!

    Posted 11 years ago on Tuesday January 22, 2013 | Permalink
  6. Thank you for sharing that code.

    Posted 11 years ago on Tuesday January 29, 2013 | Permalink

This topic has been resolved and has been closed to new replies.