Why not just combine the two custom fields into one? I mean, if the checkbox is controlling the dropdown, couldn't you just have an "Unchecked" entry in the dropdown menu?
If you can't do that, then I don't know how you can do exactly what you want, but functionally, you can create a logic hook that resets the value in the dropdown list to blank if the checkbox isn't checked. Something like:
PHP Code:
<?php
LogicHookClass
{
LogicHookFunction(&$bean, $event, $argument)
{
if(empty($bean->activate_dropdown_c) || $bean->activate_dropdown_c == 0)
{
$bean->dropdown_c = '';
}
}
}
?>
One problem with this is that if you had a user that didn't know your dropdown and checkbox were connected, they wouldn't understand why the dropdown keeps on resetting itself and would probably get frustrated at it. Got any coworkers you don't like?
Bookmarks