Support

Home Forums Event Espresso Premium Dropdown form option for country, state, etc.

Dropdown form option for country, state, etc.

Posted: March 12, 2013 at 3:51 pm


Paul

March 12, 2013 at 3:51 pm

Is it possible to have a Dropdown option for country, state, etc.


Garth

  • Support Staff

March 12, 2013 at 11:14 pm

Hi Paul,

Can you give us a little more information about your question? Do you want the drop-down as a question/answer value, or during the checkout process?


Paul

March 13, 2013 at 7:21 am

Hi Garth,

I’d like to have state and country have a pulldown that is auto populated and set a default value for country since most will be coming from the USA.

Site is live @ https://events.rarediseases.org/

Registration example in question would be @https://events.rarediseases.org/?page_id=4&ee=5


Paul

March 13, 2013 at 7:37 am

A few more things regarding the system fields.

Is it possible to limit Zip code field to only 5 characters long?

Can the phone field be in XXX-XXX-XXXX format or three separate fields instead of one?


Sidney Harrell

March 14, 2013 at 11:22 am

For the state and country fields, you can go to the manage questions screen in the admin, select “Add a new question” and select “dropdown” as the question type, and paste in a comma seperated list of countries or states. List of states List of countries


Paul

March 14, 2013 at 12:12 pm

Thank you Sidney

Is it possible to set a default value? e.g. for country it would be United States?

Also, what is the difference between using the “System Question Country default” vs. this method for creating a new country drop down? Any disadvantages?


Sidney Harrell

March 14, 2013 at 12:35 pm

It should default to the first value in the list. So just move the “United States” value to the start of the list.
The only difference that I can think of is in the attendee report export, where the system question of country would be blank, and the country would show up in the custom question section.


Paul

March 14, 2013 at 1:52 pm

Thank you Sidney.

Is it possible to limit the length of form fields? i.e. for Zip code we only want 5 digits.


Chris Reynolds

  • Support Staff

March 18, 2013 at 11:32 am

@paul

You would need to use some kind of javascript to do that, but it’s possible: https://www.google.com/search?q=jquery+force+input+to+specific+number+of+characters&aq=f&oq=jquery+force+input+to+specific+number+of+characters


Paul

March 19, 2013 at 1:42 pm

Thank you Chris. But I was hoping this was something that was built into the questions manager of EE like it is in Gravity Forms.


Dean

March 20, 2013 at 6:01 am

Hi Paul,

Unfortunately not. As we do not know what the question fields will be used for, or by what country or culture, we decided not to add in that sort of test, as what is right for a US citizen is wrong for a UK citizen.

As Chris mentioned, a short jQuery script can add in validation for you.


Paul

March 20, 2013 at 7:45 am

Dean, I understand the need to keep it international and the fields open. But I would like to have the options to keep it US only and add drop-downs for states, limit zip to 5 character length and format phone into XXX-XXX-XXXX, etc.


Chris Reynolds

  • Support Staff

March 20, 2013 at 12:16 pm

This is not something that is possible without the solution I proposed above at this time. I can definitely second the need for a better form management system, but we aren’t Gravity Forms and Gravity Forms wouldn’t be Gravity Forms either if they had to also manage event registration, attendee management, multiple payment gateways, etc. We’ll get there eventually, but this isn’t within the scope of the plugin right now. A more streamlined and robust system for creating forms is something we’ve been hoping to add for a long time.


Paul

March 21, 2013 at 1:50 pm

Understood and great to hear that we agree on better form management system.

The support post ‘Dropdown form option for country, state, etc.’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso