I have read this topic and it works great.
https://www.chronoengine.com/faqs/70-cfv5/5232-how-do-i-build-a-dynamic-drop-down-in-cfv5.html
The problem I am having is in adding a third dropdown populated by the choices of the first and second dropdown. The first Db Read puts data in the model 'depart' and this data fills the first dropdown. That starts the 'ajax' event DB Read that is save under model 'Data' and this populates the second dropdown. This then triggers the 'ajax2' event and the DB Read saves in the model 'Data2' to fill the third dropdown. But the third dropdown never propagates. I suspect the DB Read condition.
Below is my condition statement for Data2 model:
<?php
return array( 'Dept' => $form->data['depart.dept'], 'Class' => $form->data['Data.class'], );
?>
I know I have something wrong just can't see it. I have tried several different ways but can't get the AND to work. Please help! I will buy you 5 coffees, maybe 10 if I feel stupid enough. Thanks in advance for your help.
https://www.chronoengine.com/faqs/70-cfv5/5232-how-do-i-build-a-dynamic-drop-down-in-cfv5.html
The problem I am having is in adding a third dropdown populated by the choices of the first and second dropdown. The first Db Read puts data in the model 'depart' and this data fills the first dropdown. That starts the 'ajax' event DB Read that is save under model 'Data' and this populates the second dropdown. This then triggers the 'ajax2' event and the DB Read saves in the model 'Data2' to fill the third dropdown. But the third dropdown never propagates. I suspect the DB Read condition.
Below is my condition statement for Data2 model:
<?php
return array( 'Dept' => $form->data['depart.dept'], 'Class' => $form->data['Data.class'], );
?>
I know I have something wrong just can't see it. I have tried several different ways but can't get the AND to work. Please help! I will buy you 5 coffees, maybe 10 if I feel stupid enough. Thanks in advance for your help.