only in patch2: unchanged: --- a/includes/conditional_fields.admin.inc +++ b/includes/conditional_fields.admin.inc @@ -772,12 +772,21 @@ function conditional_fields_dependency_edit_form_submit($form, &$form_state) { // Store values only if the condition requires them. if ($form_state['values']['condition'] == 'value') { + $form_state_key = 'input'; + + switch ($widget_type) { + // In case of checkbox the submitted value will be "null" and we should + // take the actual one from processed values. + case 'options_onoff': + $form_state_key = 'values'; + break; + } $dependency['options'] += array( 'values_set' => $form_state['values']['values_set'], // Raw user input is needed to build actual value conditions in the // #states array, so we store it in 'value_form'. - 'value_form' => $form_state['input']['value']['field'][$dependee][LANGUAGE_NONE], + 'value_form' => $form_state[$form_state_key]['value']['field'][$dependee][LANGUAGE_NONE], ); if ($dependency['options']['values_set'] == CONDITIONAL_FIELDS_DEPENDENCY_VALUES_WIDGET) {