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.

dynamic state dropdown based on country selection

  1. edocif
    Member

    2 things.
    1: Is it possible to dynamically display state / province drop down based on country selection.
    2 If you display the state on the site as New Hampshire can it pass the abbreviation of NH instead on submit?

    Posted 6 years ago on Monday March 18, 2013 | Permalink
  2. 1. this is not currently a feature of Gravity Forms. Other users have come up with work arounds for it, including an AJAX call to get the list of states based on the country selection. You would not be able to read those posts until you are a license holder, so I won't share those links here.

    2. Yes, you can do this, either by creating your own drop down of states with the value being the shorter 2 character abbreviation, or by translating the submitted value from the long one (New Hampshire) to the short one (NH) at the time of gform_pre_submission.

    Posted 6 years ago on Tuesday March 19, 2013 | Permalink
  3. Hi there. I am interested in this and I have a license. Can i have those link please.

    Posted 6 years ago on Wednesday April 3, 2013 | Permalink

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