Skip to Content Skip to Menu

Cascading Dynamic Dropdown Select Lists

  • tjw105
  • tjw105
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
10 years 3 months ago #246691 by tjw105
I have CB 1.9.1 on Joomla 3.3.1 for a Sporting Organisation website.

I am using Hikashop for Online Store to be available for Registered players only.

I started originally to use VirtueMart but as it was only limited to J2.x and lacked Front End Management features etc I moved to Hikashop and built the site on Joomla 3 platform.

I know that there was a CB Plugin for Virtuemart to sync the CB Users data with Virtuemart, but none for Hikashop.

Hikashop uses a 2 Special Zone Tables for Country and State Codes (A primary Table listing all State and Country Code information and a Link Table linking States to Countries).

When a User inputs their Address information into Hikashop, as soon as they choose a Country, the State Select field automatically updates the selection list, ie Choose Australia, then All Aust States are listed.

I wanted to sync my CB User Data with Hikashop, so I have just tested a CB AutoAction plugin that I wrote to Insert CB User Data into the Hikashop Address Table the values from the comprofiler table, which works fine for both updates and New User registrations. This then stops Hikashop from asking for Address details for the current user when they go to checkout.

Because of the way Hikashop uses this Zone Table for State and Country, I tried to setup two CB Fields cb_country and cb_state where you select your country first from the Zone Table (query Drop down (single select) Similar to your Tutorial Page.

I then I want to have the cb_state field (query Drop down (single select) pull the list of appropriate States which are linked to the Country chosen previously. ( I used in the select query for cb_state "Where Country_code = [cb_country]"

I understand that Until I submit the registration request CB wont add the user record to the comprofiler table, but is there a way to create a Dynamic DropDown Select List based on a CB Field (front end) prior to Update / insert record.

So for the moment, I have ditched the Country Field, and base the cb_state field to use a hard coded country code.

Or can you look at for CB 2 onwards, 2 x additional special Field Types for Country and State Codes.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago #246714 by krileon
Replied by krileon on topic Cascading Dynamic Dropdown Select Lists

Dynamic DropDown Select List based on a CB Field (front end) prior to Update / insert record.

No, such a feature does not exist. It would need to ajax and redisplay the field, but for that to work right it'd need to send the currently input data, which can become a huge problem for registration as the user doesn't actually exist yet. For this to work right you'd basically need a plugin that does nothing but implement such chaining for it to be reliable, which is planned for a future plugin after CB 2.0.


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.

  • tjw105
  • tjw105
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
10 years 3 months ago #246726 by tjw105
Replied by tjw105 on topic Cascading Dynamic Dropdown Select Lists
Thanks Kyle for the response.

I also have Fabrik installed and they have a plugin for Cascading Drop Downs for their forms. So if you are planning to have such a plugin planned for CB 2 that would be awesome.

Regards

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago #246748 by krileon
Replied by krileon on topic Cascading Dynamic Dropdown Select Lists
It'd be a standalone plugin released after CB 2.0. It's planned. I just don't know exactly when I'll be able to develop and release it. First we need to get CB 2.0 Stable out then new releases for all our existing active projects and then I can begin new projects. This project is already on my list of new projects to develop.


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.

  • l3g0s
  • l3g0s
  • OFFLINE
  • Posts: 27
  • Thanks: 1
  • Karma: 0
9 years 7 months ago #260721 by l3g0s
Replied by l3g0s on topic Cascading Dynamic Dropdown Select Lists
Hi,

Is the development of the plugin is still expected?

Regards,

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #260754 by krileon
Replied by krileon on topic Cascading Dynamic Dropdown Select Lists
A chained address field plugin is still planned, yes. No new projects will be started until the plugin upgrades are done. I'm currently 70% done with CB Activity rewrite. CB GroupJive upgrade is next. Then I can begin new projects.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum