Events Made Easy Forums How do I … Autocomplete States list (Set Default Country?) 2.0.19

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #57570
    Anonymous
    Inactive

    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.

    #57572
    Franky
    Keymaster

    People 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/

    #57574
    Franky
    Keymaster

    Btw: 2.0.20 is out that should fix this.

    #57576
    Anonymous
    Inactive

    Thank 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?

    #57577
    Franky
    Keymaster

    Please do try the (newest) latest dev version, it should fix these issues.

    #57583
    Franky
    Keymaster

    @kayphoonstar : please do provide feedback on the dev-version please.

    #57585
    Anonymous
    Inactive

    Indeed! 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’?

    #57586
    Franky
    Keymaster

    Indeed, the state column is just left there to show current info in the person overview list.

    #57590
    Anonymous
    Inactive

    Thanks! 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!

    #57592
    Anonymous
    Inactive

    One 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. . . ?

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top