Change Cascading Dropdown List dynamically

hvarun

New Member
HI,

I have 2 elements in a group:


element1 is dropdown having predefined values 1,2,3,4,5.

i have 5 lists with each list having list_type attribute which is having one of the value of element 1
list 1 : list_type = 1
list 2 : list_type = 2
list 3 : list_type = 3
list 4 : list_type = 4
list 5: list_type = 5

element 2 is a cascadingdropdown:
where under data tab, list is currently mapped to List1 and ID = id and value is name field from the list 1 table.

Watch element is element 1, which is having values from 1 to 5
Foriegn key is list_type from the list1 table.

-----------------------------------------------------------------
when i select the element 1 value as 1, i am able to see the available names in the list 1 as dropdown values in element 2.

i am trying to achieve this same behavior when i change element 1 to values 2,3,4,5. i.e. it should show corresponding list names in the element 2.
how can i achieve this? can i use eval to dynamically assign the list and value under data tab?
 
Last edited:
I'm not quite sure what you are trying to do. Are you trying to show data from different lists (tables) in the CDD? If so, that won't work. The CDD can only be configured to load from one table, filtering the options according to the "watched" element's value.

-- hugh
 
Thank you for the response hugh. yes i was trying to change the CDD table based on a dropdown field. i need to load IDs into element 2 from table based on the element 1 selection. is there any other way this can be achieved by defining the element 2 as a dropdown?
 
Nope. Really the only way to do it would be to have a join element for each list, and hide / show them in Javascript when the selection changes.

Sent from my HTC6545LVW using Tapatalk
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top