Posted: March 12, 2013 at 3:51 pm
|
Is it possible to have a Dropdown option for country, state, etc. |
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? |
|
|
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 |
|
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? |
|
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 |
|
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? |
|
It should default to the first value in the list. So just move the “United States” value to the start of the list. |
|
Thank you Sidney. Is it possible to limit the length of form fields? i.e. for Zip code we only want 5 digits. |
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 |
|
|
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. |
|
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. |
|
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. |
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. |
|
|
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.