Country and State fields

Home Forums Calendar Products Community Events Country and State fields

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #98244
    lmilesw
    Participant

    Is there a way to default to a particular state and hide the country and state fields on the submission form?

    #98738
    Casey
    Participant

    lmilesw,
    Yes! You can control this by going to ‘Events->Settings->Default Content’ and selecting the appropriate values in the ‘Address’ section (screenshot). Try that and see if it does the trick. Thanks! 🙂

    -Casey-

    #98805
    lmilesw
    Participant

    That sets the defaults fine but I want to be able to hide at least the Country field. I would also like to hide the state field.

    #99137
    Casey
    Participant

    lmilesw,
    You should be able to do that by adding the following code to your theme’s functions.php file: https://gist.github.com/ckpicker/8732183 Keep in mind that if you don’t set the default Country/State values, then your form won’t work correctly after adding this code.

    Give that a shot and let me know if it does the trick. Thanks! 🙂

    -Casey-

    #103738
    Casey
    Participant

    lmilesw,
    Are you still having issues here? Just let me know and I’d be glad to help out. Otherwise, I’ll go ahead and close out this thread. Thanks! 🙂

    -Casey-

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Country and State fields’ is closed to new replies.