Events Made Easy › Forums › How do I … › Autocomplete States list (Set Default Country?) 2.0.19
Tagged: autocomplete, Country, default country, states
- This topic has 9 replies, 2 voices, and was last updated 6 years, 9 months ago by Anonymous.
-
AuthorPosts
-
Tue 27 Feb 2018 at 23:59 #57570AnonymousInactive
My forms don’t offer a country selection. I’m understanding that a country needs to be selected before the list of states is populated. Is there a way to set a country as the default so that the list of states is populated without having to select the country?
As it is now, the update to 2.0.19 breaks my forms because there’s no ‘Country’ field and I don’t see a way to disable the autocomplete entirely.
Wed 28 Feb 2018 at 00:47 #57572FrankyKeymasterPeople always come up with exceptions I never thought about 🙂
Anyway, the next version will use the 1 country as a default if you only have 1.
If you want to test, download the dev version here:
https://wordpress.org/plugins/events-made-easy/advanced/Wed 28 Feb 2018 at 00:54 #57574FrankyKeymasterBtw: 2.0.20 is out that should fix this.
Wed 28 Feb 2018 at 01:56 #57576AnonymousInactiveThank you for the reply – you seem to think of *Plenty* of stuff!
I updated to 2.0.20 and also tried the Dev version. The state updates work but I’m not seeing the ‘default country’ behavior.
But I’m also getting an error now when entering the Num-3 code ‘Incorrect num-3 code‘ when entering 840 for the USA.
I also can’t get past validation when the state and/or country fields are ‘Required’: “Please make sure all of the following required fields are filled out correctly: Country, State“.
When not set to required, the ‘state_code’ and ‘country_code’ columns are populated but not the ‘state’ column.
Is the ‘state’ field/column being deprecated?
Wed 28 Feb 2018 at 09:31 #57577FrankyKeymasterPlease do try the (newest) latest dev version, it should fix these issues.
Wed 28 Feb 2018 at 14:39 #57583FrankyKeymaster@kayphoonstar : please do provide feedback on the dev-version please.
Wed 28 Feb 2018 at 18:16 #57585AnonymousInactiveIndeed! That was just incredibly fast. Bugs squashed (in latest dev version):
Required Validation: Check.
Num-3 Entry: Check!
Single Country Selection: Check!!So, I guess the ‘state’ column is in fact deprecated, to be replaced by ‘state_code’?
Wed 28 Feb 2018 at 18:33 #57586FrankyKeymasterIndeed, the state column is just left there to show current info in the person overview list.
Thu 1 Mar 2018 at 00:13 #57590AnonymousInactiveThanks! The update to 2.0.21 looks great and it all seems to be functioning as expected!
Just a note to myself here: I’ve added the Country field even though I’ve hidden it since the state field seems to need the country field in order to pull the states into the registration page.
Thanks again!
Thu 1 Mar 2018 at 00:36 #57592AnonymousInactiveOne other tiny thing I meant to mention/ask about about regarding this feature upgrade. It’s a very small thing but would it be problematic to add a counter reset routine if the states or countries are totally cleared?
I just did it from phpMyAdmin
ALTER TABLE wp_eme_states AUTO_INCREMENT = 1;
but it seems like it might be a nice option. . . a counter reset. . . ? -
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.