Support

Home Forums Event Espresso Premium Registrant Completed Form with Country Not Shown in Dropdown

Registrant Completed Form with Country Not Shown in Dropdown

Posted: September 21, 2020 at 1:10 pm

Viewing 5 reply threads


mkreik

September 21, 2020 at 1:10 pm

We just had someone register and fill out the form with California as the state and Afghanistan as the country. We noticed it because we got a message from EE on our dashboard saying, “A new State named California (CA) was dynamically added from an Event Espresso form for the Country of “Afghanistan”. To verify, edit, and/or delete this new State, please go to the Event Espresso – General Settings > Countries Tab and update the States / Provinces section…” Afghanistan has never been shown in the country dropdown, and I confirmed that it shows No next to Country Appears in Dropdown Select Lists in General Settings>Countries. I also went to the live version of the site and was not able to force Afghanistan into the country field. How then did the registrant do that? What can we do to prevent that from happening in the future?


mkreik

September 21, 2020 at 1:22 pm

This reply has been marked as private.


Tony

  • Support Staff

September 21, 2020 at 4:22 pm

Hi there,

On your registration form the use can select to add another state and select the country it is for here:

https://monosnap.com/file/9WGZroyKltasI0tUcNIaaNKb3bGOZ3

Clicking that opens a section like this:

https://monosnap.com/file/ykzQKrylXswb6kzuRNnKA9cepvKscK

If you don’t want users to have the ability to do that you can remove it by adding this snippet to the site:

https://gist.github.com/joshfeck/7bf112ee2dc9e49f7e3f14b8c2b59611

You can add that to a custom functions plugin and we have some details on how to create one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


mkreik

September 21, 2020 at 6:26 pm

I used this CSS to hide it instead:

.ee-form-add-new-state-lnk {
display: none;
}


Tony

  • Support Staff

September 22, 2020 at 2:36 am

Yeah, you can also do it with CSS, it just means that the elements are still added but then hidden whereas with the above they simply aren’t added at all.


mkreik

September 22, 2020 at 7:54 am

Thanks!

Viewing 5 reply threads

The support post ‘Registrant Completed Form with Country Not Shown in Dropdown’ 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