I have successfully populated a drop-down field from a Dynamic Data DB Read using the instructions you provided here:
http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2647-how-do-i-build-a-select-drop-down-radio-button-or-checkbox-group.html
I am currently pulling the item ID and title from a K2 items table. It works. However it's displaying all the items.
What snippet of code do I need to create a condition whereby only published K2 items are read in? (published field = 1)
I would also like the conditional code to only pull from a specified category. I have 6 categories (2 main categories with ID's 1,4 and 4 sub-categories with ID's 2,3,5,6). I would like the DB Read to pull only from category ID #1.
FYI, I tried the code < ?php return array('field' => 'value'); ?> populated with 'field' replaced by 'published' and 'value' replaced by '1' but it returned as a text string at the top of the form.
I also set Multi read to 'yes' in the Edit Action Settings.
Thank you,
Shannon
http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2647-how-do-i-build-a-select-drop-down-radio-button-or-checkbox-group.html
I am currently pulling the item ID and title from a K2 items table. It works. However it's displaying all the items.
What snippet of code do I need to create a condition whereby only published K2 items are read in? (published field = 1)
I would also like the conditional code to only pull from a specified category. I have 6 categories (2 main categories with ID's 1,4 and 4 sub-categories with ID's 2,3,5,6). I would like the DB Read to pull only from category ID #1.
FYI, I tried the code < ?php return array('field' => 'value'); ?> populated with 'field' replaced by 'published' and 'value' replaced by '1' but it returned as a text string at the top of the form.
I also set Multi read to 'yes' in the Edit Action Settings.
Thank you,
Shannon