Skip to Content Skip to Menu

I need to fix my wrong configuration of Country field

  • shih
  • shih
  • OFFLINE
  • Posts: 49
  • Thanks: 1
  • Karma: 0
6 years 2 months ago - 6 years 2 months ago #306732 by shih
I have followed the instruction of Configuring a Country field with CB Query field plugin .

However, I didn't succeed. My front-end is like this:


And my Query is:


And my database is:


I tried to change my query to:
SELECT `iso`, `country`, `continent_full` FROM `#_country_info` ORDER BY continent_full, country

But it's still not working. I really want to fix it.

Thanks for helping me.
Attachments:
Last edit: 6 years 2 months ago by shih.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
6 years 2 months ago #306748 by krileon
You're trying to use Query Validation. That just validates an existing field with your custom database query. You need to create a Query Drop Down (Single Select) field as the tutorial directly states in step 2. Please follow the below tutorial carefully.

www.joomlapolis.com/documentation/345-cb-query-field/tutorials/18377-configuring-a-country-field-with-cb-query-field-plugin


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • shih
  • shih
  • OFFLINE
  • Posts: 49
  • Thanks: 1
  • Karma: 0
6 years 2 months ago - 6 years 2 months ago #306756 by shih
I think I have made this field a "Query Drop Down (single-select), but no change at all.



It seems to me the Query didn't retrieve any data from the table "country_info" at all. The field still works like a Drop-Down single selection, even I select "Query Drop-Down" and put a Query in integration
Attachments:
Last edit: 6 years 2 months ago by shih.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
6 years 2 months ago #306759 by krileon
The parameters for the query field are under the Parameters tab. If the type is correct you are still trying to add query validation under the Integrations tab, which is not correct.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: shih

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum