• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: State Selector

State Selector 17 years 10 months ago #712

Copy this into the Default Value of a select field to get a list of states:

Select A State,2|Alabama,3|Alaska,4|Arizona,5|Arkansas,6|California,7|Colorado,8|Connecticut,9|Deleware,10|Dist of Columbia,11|Florida,12|Georgia,13|Hawaii,14|Idaho,15|Illinois,16|Indiana,17|Iowa,18|Kansas,19|Kentucky,20|Lousiana,21|Maine,22|Maryland,23|Massachusetts,24|Michigan,25|Minnesota,26|Mississippi,27|Missouri,28|Montana,29|Nebraska,30|Nevada,31|New Hampshire,32|New Jersey,33|New Mexico,34|New York,35|North Carolina,36|North Dakota,37|Ohio,38|Oklahoma,39|Oregon,40|Pennsylvania,41|Rhode Island,42|South Carolina,43|South Dakota,44|Tennessee,45|Texas,46|Utah,47|Vermont,48|Washington,49|West Virginia,50|Wisconsin,51|Wyoming
The administrator has disabled public write access.

Re:State Selector 17 years 10 months ago #713

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Thanks for your contribution.

Also this could be usefull

AK|Alaska,AL|Alabama,AR|Arkansas,AZ|Arizona,CA|California,CO|Colorado,CT|Connecticut,DC|DistofColumbia,DE|Delaware,FL|Florida,GA|Georgia,GU|Guam,HI|Hawaii,IA|Iowa,ID|Idaho,IL|Illinois,IN|Indiana,KS|Kansas,KY|Kentucky,LA|Louisiana,MA|Massachusetts,MD|Maryland,ME|Maine,MI|Michigan,MN|Minnesota,MO|Missouri,MS|Mississippi,MT|Montana,NC|NorthCarolina,ND|NorthDakota,NE|Nebraska,NH|NewHampshire,NJ|NewJersey,NM|NewMexico,NV|Nevada,NY|NewYork,OH|Ohio,OK|Oklahoma,OR|Oregon,PA|Pennsylvania,PR|PuertoRico,RI|RhodeIsland,SC|SouthCarolina,SD|SouthDakota,TN|Tennessee,TX|Texas,UT|Utah,VA|Virginia,VI|VirginIslands,VT|Vermont,WA|Washington,WI|Wisconsin,WV|WestVirginia,WY|Wyoming
The administrator has disabled public write access.

Re:State Selector 17 years 10 months ago #714

I almost did it like that, but I wasn't sure which way to go. I haven't actually gotten to the point where I can test the data received from a form.

I'm curious, will the way that I did it return a number value for the selected state, and the way you did return the Abbreviation?

If so I'm going to change it to your way since it wouldn't make much since to me if I just get a numerical value back.<br><br>Post edited by: evilrobot, at: 2007/05/24 20:15
The administrator has disabled public write access.

Re:State Selector 17 years 10 months ago #725

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Yes, the first part is the value returned when you select something, the second is the one that user sees when the select box is being displayed.
The administrator has disabled public write access.

Re:State Selector 17 years 10 months ago #755

Just noticed your addition of US territories - Nice!
The administrator has disabled public write access.

Re:State Selector 17 years 1 month ago #2205

  • RDCooter
  • RDCooter's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
This worked for me,but how to I pre-select one of these entries as a default?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!