Please Log in or Create an account to join the conversation.
Use CB Query Field and build your select field from those database tables. Next be sure your query is dependent on the previous field. Now use CB Core Fields Ajax and configure the fields Update On to be for the previous field. This will for example cause Country to refresh when Region changes its value. An example of this using Query Autocomplete against text fields is included in CB Quickstart if CBSubs is installed.QUESTION 1
1. FROM `#__comprofiler_countries` Region field to show ORDER BY `country_region` and `country_sub_region`.
2. Once the user selects a `country_sub_region` => the Country field appears showing the countries related to the specific `country_sub_region`.
3. Once the user selects one of the countries shown for the specific `country_sub_region` => the State field appears FROM `#__comprofiler_provinces` showing the States related to the specific `country_name`.
4. Once the user selects one of the States shown for the specific Country => the City field appears showing the Cities related to the specific `province_name`. (As for the 4th step, I will implement if/when I manage to find all the cities. An alternative to this could be for the user to input text in the field.)
Not sure what you mean by this. Usually best to show a text field for them to type their city if it's missing, which you can do by outputting a Other option then conditioning a text field to display.Although the user might select North America->USA->Connecticut->Bridgeport, in case there is no member in the database from Bridgeport, I would like the system to show members from Connecticut.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I assume that's a Code Select provided by CB Code Field. You don't need a Code Select for that. You can use a Query Select as follows.`cb_subcat_bus` query doesn't:
Please Log in or Create an account to join the conversation.