Hi all,
Here is a fix for using Listo with ContactForm7 forms containing Select fields. Actually, it’s just a fix for Select fields in ContactForm7 but it makes Listo work as it is meant to.
First, I should mention I raised this issue in 2022 and fixed it myself, after the plugin author Takayuki Miyoshi did not respond. He still hasn’t responded. This made me angry.
I had disabled updates since fixing it, fearing this issue would come back and recently it did. Somehow the system updated all plugins. The bug is still there and this broke the form on the site. I had to fix it again and I want others to be able to use these plugins together, in the way that the documentation says they are supposed to work (but don’t). See this post for details on how the two plugins don’t work as advertised: https://www.ads-software.com/support/topic/select-list-values-not-appearing/
The answer is to change the line of code at line 75 in …./wp-content/plugins/contact-form-7/modules/select.php
Change $tag->values = array_merge( $tag->values, array_values( $data ) );
To read $tag->values = array_merge( $tag->values, array_keys( $data ) );
Now the select field will have the keys as values, instead of the label as both name and the value. You’re welcome, Takayuki! Enjoy!
]]>Probably a stupid question.
Does Listo save the data of subdivisions of countries in the database or upload it as needed from elsewhere?
How do I show the countries list on other languages? I have site on English and Spanish and want to know if I can show the list of the countries in Spanish for the Spanish site.
]]>I’ve tried this plugin and I really like it. I have a question though. The dropdown menu becomes way too long. The countries continues to the end of the website. Is it possible to make a dropdown menu with a scroll in it?
Thanks!
]]>I seen this question over and over without any answer, how can we have the custom list send the email of the abbreviation instead of the entire text.
For the example on this support
/**
* Add a list of languages to Listo
*/
// Filter to enqueu the language list
if ( interface_exists( 'Listo' ) ) {
add_filter( 'listo_list_types', function( $list_types ) {
$list_types = array(
'languages' => 'Listo_Languages',
);
return $list_types;
}, 10, 1 );
// Class to handle the language list
class Listo_Languages implements Listo {
private function __construct() {}
public static function items() {
return array(
'en' => _x( 'English', 'language', 'listo' ),
'es' => _x( 'Spanish', 'language', 'listo' ),
'it' => _x( 'Italian', 'language', 'listo' ),
'fr' => _x( 'French', 'language', 'listo' ),
'nl' => _x( 'Dutch', 'language', 'listo' ),
'de' => _x( 'German', 'language', 'listo' ),
);
}
public static function groups() {
return array();
}
}
}
If on the select list some one select Italian how can we set it to send the ‘it’ instead of the full word?
It is right now as
<option value="Italian">Italian</option>
I can name a tone of reason why we need to have the option that it comes out as:
<option value="it">Italian</option>
If there is no way please let us know and add it as a featured request to the plugin
]]>Where in the world is this plugin once installed? It is not showing up anywhere in the sidebar menu including in Settings, it’s not an option in posts or pages, it’s not in Elementor, it’s not in WPForms, and it’s not in the Admin bar.
As one reviewer wrote (translated from Spanish), “Hello, how does it work, I installed it but I don’t see the options, thanks.”
Nowhere in the description as of this writing does it mention “Contact form” or “CF7” or that this can only be used within a plugin. It says it “supplies other plugins and themes” but gives absolutely no instruction in any of this plugin’s tabs here on WP as to how to use it.
This is disappointing.
]]>Hi, you said
`for ‘en’ => _x( ‘English’, ‘language’, ‘listo’ ), I will see “English” in the list and the value will be “en”?
That’s right.
…there is no way the user can create list of is own on the Admin area?
The plugin doesn’t have an admin interface to do that yet: You need to set your custom lists using the listo_list_types filter hook to do it, as explained above.
16 hours ago
Am I doing something wrong? I just installed this and tried to use a form field
[select* currencies includeblank data:currencies]
This does not appear to work as advertised because I am seeing e.g. for currencies
<option value=”United Arab Emirates dirham”>United Arab Emirates dirham</option>
When, according to what you wrote 16 hours ago, I should be seeing
<option value=”aed”>United Arab Emirates dirham</option>
Please advise.
]]>Is there way to make my own list?
]]>Hello,
I am facing an error(“Bot Protection Firewall Blocked because of Malicious Activities“) when editing the contact form. that contact form contained the list shortcode(data:countries) while removing the code the form editing works fine.
Can you please check it and update me as soon as possible?
Thanks.
]]>The list of countries is great.
Could be interesting to add a list of nationalities (portuguese, spanish, english…)
Hi,
i’ve been using Listo plugin in a project for the last year, without any problem, and i’ve noticed that since the last update (1.3 -> 1.4), my translations are not working anymore. If I disable the plugin, translation work again.
I’ve a child theme, and using Divi theme and Polylang.
?Any clue?
Regards,
Xavi
]]>Hello, thank you for your super plugin. Is possible to somehow autodetect from browser language or geolocation of user the country and preselect it? Thank you so much ??
]]>I don’t see a way to set the value of the state dropdown to something besides its full state name. Is there a way?
]]>Hi, thank you for making this, it looks like just what I need. However, I’m having a really hard figuring out how to use this in my own theme or plugin, meaning using it to generate a standalone list, outside Contact Form 7.
Thanks!
]]>My client said the countries’ order is not in alphabetical order, is there is option to fix this?
]]>Hello
Thank you for this great plugin. saved our time
I have a question about how I can enable a jump to a country just by hit the first letter of this country. Like select the droplist and click Z ( on the keyboard ) the list auto jump to Zambia.
Thank you
Any plans to add a database for language list?
]]>Please, please, please provide the ability to create our own lists and add them. The possibilities for this plugin are endless and providing this feature will greatly enhance Listo’s and CF7’s capability.
]]>Hello there,
I wonder how I can change the colours of the text to white?
My website’s background is dark and at the moment I can only read then I hover the mouse pointer over the top of it (the text then turns white)
Many thanks.
Anna
]]>Hi. Thanks for your work and sorry for my bad english.
I have do a country list dropdown like on the right side of this site: https://www.beeck.com/de/kontakt/bmf-beeck-bezugsquellen.php
Internationale BEECK Vertretungen und Fachh?ndler
By clicking on the country, an adress (country representative) must shine up.
Is this possible with your plugin? I’m not a coder.
thanks for reply
toni
Hello,
Is it possible to get a country list by continent please?
Thanks
Hello, i have idea on killer function for this great plugin.
Can you do manager for custom data lists in administration please?
I know that is it possible by manual adding by this https://www.ads-software.com/support/topic/posible-to-have-custom-data/ but i think so much complicated for normal users.
for example, I need to create and manage many lists often. 30-50 custom lists
]]>I’ve been updating hundreds of forms using Listo and the default value from the correct alphabetization of US states (not including territories and districts) of 1-50 and have run into a number of issues with the Listo list of US states being incorrectly ordered. The most obvious one I can see is the very first two, Alaska and Alabama. alaB is before alaS, so it would be good to please fix this.
Edit: Arkansas and Arizona are also out of order. arI is before arK.
Iowa should be after Indiana, not Hawaii. O is before D, L, and N as in Idaho, Illinois, and Indiana, and then should be Iowa
Maine should be the first “M” state rather than Maryland. maI is before maR
The “N” states are completely wrong
The current order:
North Carolina
North Dakota
Nebraska
New Hampshire
New Jersey
New Mexico
Nevada
New York
Correct order:
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
nE is very much before nO
I give up at this point.
In fact, after typing out all the errors in Listo, I’m going to switch back to just typing out the actual, correctly ordered list.
Would not recommend this plugin.
]]>素晴らしいプラグインをありがとうございます。
自動で日本語に変換されるのですが、英語のままの表記にする為にはどうすれば良いですか?
]]>Hi,
Is there a way to show some specific countries in the top of the list?
Regards.
]]>Hello. In Contact Form 7 I’d like to add a select element that contains a list of all telephone country codes, as in this screenshot. Would Listo be able to assist with that? I see that Listo can be used to create a select element containing all countries. But how would I add the country codes, and the flag images?
There is indeed another plugin that can do this: International Telephone Input for Contact Form 7. But there are a few issues and the developer seems to be MIA.
Thanks in advance.
]]>I have only uploaded a new list a couple of times since the site is still fairly new, but I am noticing that after I upload the list to WordPress, it does not display everyone that is in the original list. I have double checked to make sure the missing individuals are in the original list and they are. And I am also using the correct format to upload the list (CSV). Any help on this is appreciated!
]]>Hi,
Wasn’t sure where to post this, but if any one is in need of a list of Japanese prefectures, I created one, but not sure where to upload it.
Any tips?
Best regards
ChrisBDK74
Nevada is displayed out of order in the US states list. It is showing between New Mexico and New York.
]]>Can you assign a value other than the name in the option ???
for example
Name = Italy, Value = 0001
Name = Germany, Value = 0002