Skip Navigation

[Resuelto] Select field doesn't allow for a full list of countries

This support ticket is created hace 5 años, 10 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por Luo Yang hace 5 años, 10 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#1191535
Screenshot 2019-01-26 at 22.58.29.png

I am trying to: create a dropdown with all countries

Link to a page where the issue can be seen: Site isn't public yet

I expected to see: the full list of all the countries from the module I imported

Instead, I got: a list ended at Rwanda

I imported the module shared in this post (https://toolset.com/forums/topic/how-to-import-states-and-countries-into-selects-for-fields/). I then tried to import it into a repeatable fields group. However, when it imports it only goes as far as Rwanda.

The full list will show when the country list is not in a Repeatable Group, but when in a group it seems to cut off the last few select options. Is there a limit to the number of options that a select can have?

#1191795
groups.JPG

Hello,

I assume we are talking about this post:
https://toolset.com/forums/topic/how-to-import-states-and-countries-into-selects-for-fields/#post-244714

I have tried the file "countries_states_provinces-2014-09-17.zip" provide in above post, tested it in a fresh wordpress installation + the latest version of Toolset plugins,

Import the file with Modules manage plaugin:
Dashboard-> Toolset-> Export / Import-> Modules

t works fine, I can see all the options here:
Dashboard-> Toolset-> Custom Fields, edit field group "Countries, US States, & Canadian Province Lists"

See screenshot groups.JPG

I suggest you check these in your website:

1) You are using the latest version of Toolset plugins
2) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2019, and test again
3) Check if there is any PHP error or JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

#1191802

Thanks for the response. However, you missed some of the detail of what I mentioned in my post.

I can also see all the options when I simple include the select as a custom field in a group. It is when I try to include the select in a repeatable group within a custom field group that I can't see the options after R or S. It's as if there is a limit to how many options the page can show.

#1191804

Thanks for the details, but there isn't the same problem in my localhost, here are detail steps:
1) Import the file with module manage
2) Create a custom field group with a Repeatable Group,
3) in the "Repeatable Group", click button "Add New Field", click button "Choose from previously created fields", choose country, it works fine, there isn't the problem as you mentioned above: can't see the options after R or S.

Please try as I mentioned above:
https://toolset.com/forums/topic/select-field-doesnt-allow-for-a-full-list-of-countries/#post-1191795

1) You are using the latest version of Toolset plugins
2) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2019, and test again
3) Check if there is any PHP error or JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/