OK, in order to do that, I had to detach the page from the template. What's a better way to do that? I tried adding an editable region inside the body tag, but DW wouldn't allow that. I tried adding an editable region which contained the body tag, but then DW became unable to display anything in the body of the document.
Anyway, I did detach it from the template and add the onload event to the body tag for selecting the first dropdown and that works. Now I need to get the child dropdown to show as selected. The child dropdown works if the user selects the organization, but if the organization is selected by the onload event, the child dropdown shows as unpopulated and it's not only not selected, it's not selectable.
I tried adding a second onload behavior to populate the child list, but it doesn't do anything, presumably because there's no array selected.
Here's the latest version of my body tag:
<body <? if (isset($_GET['ID'])) { ?> onload="WA_setSelectionsInChildList(MM_findObj('orgID'),<?php echo $row_project['agency']; ?>)" <? } ?> <? if (isset($_GET['ID'])) { ?>onload="WA_FilterAndPopulateSubList(contacts_WAJA,MM_findObj('orgID'),MM_findObj('contact'),1,0,false,': ')" onload="WA_setSelectionsInChildList(MM_findObj('contact'),<?php echo $row_project['contact']; ?>)" <? } ?> >
Perhaps if I tweaked the code on the FilterandPopulateSubList parameters it would work, but since I'm not sure what those parameters refer to, I haven't ventured there.
Thanks, barbara