Please Log in or Create an account to join the conversation.
You've the right idea, but your query will fail since you're using back quotes instead of single quotes around your substitution. So you'll want to make the below change.The city field (query drop down field) has to fetch the choosen country in the integration tab "CB Core Fields Ajax" with choosen the country field (cb_country) in "Additional Fields". In cb_country the content "alpha_3_code" is stored.
My first step for the query at the moment is
SELECT city
FROM #__cities
WHERE country_alpha_3_code = `[cb_country]`
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You're going to have to split them in your query the use FIND_IN_SET against it converted to a comma list. Easiest way to do that is with the following usage.I have a further question hereto: if I change the cb_country into a Query Drop Down (Multi-select) field, the cb_country has several alpha 3 codes stored. How can I filter this with the WHERE in the query? (all cities of the choosen countries shall be shown)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.