Posted: 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. |
|
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? |
|
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. |
|
Also, yes, they are showing Country and Province/State fields. |
|
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? |
|
It says they are both System Questions but they are both Required. Could that be the issue? |
|
No, requiring the field doesn’t cause an issue. |
|
I’ve found out the issue. Thanks for your help. |
|
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? |
|
For more clarification on my request: How can I get through AND can I let them leave Province/State blank? Thanks for your help. |
|
Hi Matt, This might be oversimplifying, but can’t you set the State and Province fields to be optional instead? |
|
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. |
|
May I ask how exactly did you remove it, and how was it added back in? |
|
Our other developer had used this to remove it initially. I’ve just commented it out. //REMOVE ADD NEW STATE/PROVINCE LINK |
|
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. |
|
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? |
|
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. |
|
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? |
|
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: |
|
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. |
|
You can hide the instructions by using CSS if that’s what you’re going for. |
|
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.