Chained Select

sekeri
sekeri
@ilker
10 years ago
334 posts
I would like to have a category selection similar to http://www.ultimate-guitar.com/submit/reviews.php

For example 3 level selection boxes. First is continents, second is countries, and the last one is cities.

When I select Europe as a continent all the European countries should be listed in the second list and when I select for example Germany then all the German cities will be listed in the last selection.

I plan to add this into my custom module. I have tried to do it using Chained Select Function without success.

Can you please help me on how to configure Chained Select for this purpose?

Is this the correct way to do it? Thank you!

updated by @ilker: 04/25/14 10:11:23AM
brian
@brian
10 years ago
10,148 posts
Yeah that should be doable - Paul is checking this out and will post an update here.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
sekeri
sekeri
@ilker
10 years ago
334 posts
I have been checking it and YES it is possible to create it using Chained Select Module.

But the problem is that I can not use it in Form Designer. If I select Type as chained_select or chained_select_and_text nothing is displayed in the form.


In Form Designer I add a new field;

Type = chained_select_and_text
Option = review_cats (which is my chained select name)

But the field is not displayed.

If I add another type like a date field it is displayed without any problems
brian
@brian
10 years ago
10,148 posts
Paul is the developer of the module, so he will follow up here with you - I know it works, it just has to be setup just right.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
paul
@paul
10 years ago
4,326 posts
I've written a 'HowTo' for this module -

https://www.jamroom.net/the-jamroom-network/documentation/howto/1753/using-the-jrcorechainedselect-module-by-example

hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
sekeri
sekeri
@ilker
10 years ago
334 posts
Thank you Paul. I have created my chained select fields using your HowTo document without any problems. I can also display it in my new Form.

But when I try to save the form it says "invalid jrCore_checktype:" even if the validation field is disabled for the chained select items.

Another point is:
Maybe it would be really helpful if you can mention about the differences between chained_select_and_text and chained_select and their usage.

Thanks..
paul
@paul
10 years ago
4,326 posts
I've added a 'chained_select_and_text' section to the HowTo.

I'm also getting an Invalid Checktype error when entering 'chained_select_and_text' fields. I'll check that out.
Thanks
Pa


--
Paul Asher - JR Developer and System Import Specialist

Tags