Support

Home Forums Event Espresso Premium Question Type Dropdown Limitation

Question Type Dropdown Limitation

Posted: August 16, 2022 at 6:06 am

Viewing 3 reply threads


deborah.dauwalder

August 16, 2022 at 6:06 am

Hello there,

I have an issue with the Question Type Dropdown.
A client of mine needs to have a Dropdown with more than 200 possible answer options.
Everytime I try to save more than 200 value options it deletes the last few values added.

I already read a few forum topics and changed the max input values but nothing helped yet.
Is there a limitation from the event espresso plugin or from wordpress itself?
If there is, can I somehow get more values inserted in the same dropdown?

Let me know if you need some more informations.


Tony

  • Support Staff

August 17, 2022 at 6:37 am

Hi there,

There isn’t a limitation within Event Espresso itself and to confirm this I created a dropdown question and added over 200 options to that question:

https://monosnap.com/file/VKdfCi1n6OQEiz4CjmS0aXVrr8AVid

I can still add more (and have done since that screenshot) but what I did notice from the above is that at around 200 dropdown options there are roughly 1000 inputs on my page.

See here: https://monosnap.com/file/sqyVzIZOKA8dPwvUmnR9C3HWr7BqsQ

That’s me using Chrome Dev Tools to check how many ‘inputs’ are on the page and for mine, it is at 1332 for 230 Dropdown options…. the reason that is significant is because the default max_input_vars setting within PHP is 1000, when you have more inputs than whatever is set by max_input_vars the server will just ignore them and they appear to have then been deleted when you save (which technically they have).

You said you’ve already changed that value but mine is set to 5000 locally and works fine, if I change it to 1000 I can reproduce the same issue you’ve mentioned, increasing it allows for more dropdown options again.

Go to Event Espresso -> Maintenance -> System Information

Search that page for ‘max input vars’ or possibly max_input_vars, if yours is 1000 then the above is likely your problem. You will need to increase that value for it to work, going to 2000 allow for almost double the number of values you can set (there are more inputs than just what you are adding to the dropdown).

Some hosts have an option to change this within your control panel but if yours does not you can open a ticket with them requesting they change it for you.

Once done, use the above Maintenance screen I mentioned above to confirm the value has updated and test adding options to the dropdown again.


deborah.dauwalder

August 24, 2022 at 3:19 am

Hey @Tony

Thanks for the detailed answer.
It solved my problem.
You helped me a lot.


Tony

  • Support Staff

August 24, 2022 at 5:21 am

You’re most welcome 🙂

Viewing 3 reply threads

The support post ‘Question Type Dropdown Limitation’ 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