Support

Home Forums Event Espresso Premium Add New State not showing – Multi Registration

Add New State not showing – Multi Registration

Posted: August 28, 2018 at 2:48 pm

Viewing 20 reply threads


Matt

August 28, 2018 at 2:48 pm

Is there a way to add the “Add New Country/State” function to an Attendee’s information in Multi-Registration?

If not, what is the proposed way to handle “Other Country” and “If Other Country Selected” logic on Province/State when dealing with it as a required field?

Thanks.


Josh

  • Support Staff

August 28, 2018 at 3:39 pm

Hi Matt,

I’m not 100% sure what you’re asking here because normally there is an “Add New Country/State” function for every additional registration form if the system questions for Country and State are included. Here’s a screenshot of an example:

https://slack-files.com/T02SY781D-FCH0GBRL2-6295db184b

May I ask are the additional registrant forms showing a State & Country field from the Address system question group?


Matt

August 28, 2018 at 3:44 pm

Maybe I’m having a different problem then. I do not see this link and would like to have it in there. I’ve inspected the code and it’s not there but hidden. Is there a setting to disable this that I’ve accidentally checked?

Thanks for your help.


Matt

August 28, 2018 at 3:51 pm

Also, yes, they are showing Country and Province/State fields.


Josh

  • Support Staff

August 28, 2018 at 3:54 pm

There isn’t a setting to disable it. Are the State & Country fields on the registration form the system questions or are they custom fields that were added after Event Espresso was activated?


Matt

August 28, 2018 at 3:55 pm

It says they are both System Questions but they are both Required. Could that be the issue?


Josh

  • Support Staff

August 28, 2018 at 4:08 pm

No, requiring the field doesn’t cause an issue.


Matt

August 29, 2018 at 4:53 am

I’ve found out the issue. Thanks for your help.


Matt

August 29, 2018 at 5:11 am

Sorry. Additional question on this.

I have Country and Province and “Required” fields. If they choose to do this method, it does not prevent Country and Province from producing errors. Is there a way to validate to make sure that they’ve done one or the other?


Matt

August 29, 2018 at 5:20 am

For more clarification on my request:
1. I click “Add New Province/State”
2. I add a country from the dropdown but can’t leave it blank and I write “None” or “Test” or whatever. I looked up the country I was testing with and they didn’t have provinces. I click “Add” and it fills the country and province fields.
3. If I try to submit I get “This Registration Step could not be completed. Please Refresh the page.” and then it wipes out all the info that’s been entered and I still can’t get through.

How can I get through AND can I let them leave Province/State blank?

Thanks for your help.
Matt


Josh

  • Support Staff

August 29, 2018 at 6:12 am

Hi Matt,

This might be oversimplifying, but can’t you set the State and Province fields to be optional instead?


Matt

August 29, 2018 at 7:09 am

I don’t think that’s what it is.

When I add the Province and Country it runs admin-ajax.php successfully and gives me a response for that.

When I submit, I get a 500 Error with admin-ajax.php and no response.

This was working before I added the New Province feature back in but now, even if it’s removed, I can’t get it to go through to the next page.

Thanks for your help with all this.


Josh

  • Support Staff

August 29, 2018 at 7:14 am

May I ask how exactly did you remove it, and how was it added back in?


Matt

August 29, 2018 at 7:16 am

Our other developer had used this to remove it initially. I’ve just commented it out.

//REMOVE ADD NEW STATE/PROVINCE LINK
/*
add_action( ‘template_redirect’, ‘my_remove_new_state_link’ );
function my_remove_new_state_link() {
remove_filter(‘FHEE__EE_SPCO_Reg_Step_Attendee_Information___question_group_reg_form__question_group_reg_form’,
array(‘EED_Add_New_State’, ‘display_add_new_state_micro_form’), 1);
remove_filter(‘FHEE__EE_SPCO_Reg_Step_Payment_Options___get_billing_form_for_payment_method__billing_form’,
array(‘EED_Add_New_State’, ‘display_add_new_state_micro_form’), 1);
}
*/


Josh

  • Support Staff

August 29, 2018 at 8:07 am

Does the same issue happen if you follow the same steps with this event on a dev server?

If so, can you outline the exact steps to replicate the error?

If not, then there may be some code from another plugin, the theme, or other that’s interfering. These can be systematically ruled out by temporarily disabling them.


Matt

August 29, 2018 at 12:04 pm

I fixed the AJAX issue.

One other question. If I change the Province dropdown to a text field, does it still work the same in reports and all?


Josh

  • Support Staff

August 29, 2018 at 12:43 pm

It will not work the same. First, that field’s type can’t be changed through the UI, so if the idea is to change it by some other means, we advise against doing so.

The reason they made the province a dropdown (as opposed to a text field) is because the result is you’ll have more consistent data to work with. Otherwise you’ll get every possible variation of a province name, from misspellings to 2-3-4 character abbreviations.


Matt

August 29, 2018 at 12:48 pm

I totally understand that, but my client finds the “your province/state isn’t listed” option very confusing. She’d prefer we just add all the countries to the country dropdown. The only problem is that I can’t make the Province/State dropdown a required field anymore – because not all countries have this data, so it comes in blank and they get an error. She wants both things required.

Can I not just create a Province/State text box and add that instead of the dropdown? What do I do if I don’t want to use the “province isn’t listed link” and still have people able to get through. Is there a way to make Province/State mandatory ONLY if there are some?


Josh

  • Support Staff

August 29, 2018 at 2:01 pm

You can create a Province/State text box, but it will not map to the contact record’s Province/State field. Instead, it will be stored as an answer to a custom question.

What you can do is programmatically add the countries/states provinces. There’s quite a few “country packs” that make this go quickly, and they’re available to download here:

https://github.com/eventespresso/ee-packs-states-provinces


Matt

August 29, 2018 at 2:07 pm

Better than that, is there a way to just simplify the “state not listed” display so that I can have the link only open a text box and an add button without all the text around it? I think all the steps and content is what’s confusing the process.


Josh

  • Support Staff

August 29, 2018 at 2:16 pm

You can hide the instructions by using CSS if that’s what you’re going for.

Viewing 20 reply threads

The support post ‘Add New State not showing – Multi Registration’ 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.

Event Espresso