$processedValues['elements']['ele_value']['_YES'] = 1;
        $processedValues['elements']['ele_value']['_NO'] = 0;
    } elseif ($_POST['elements_ele_value'] == "_NO") {
        $processedValues['elements']['ele_value']['_YES'] = 0;
        $processedValues['elements']['ele_value']['_NO'] = 1;
    } else {
        $processedValues['elements']['ele_value']['_YES'] = 0;
        $processedValues['elements']['ele_value']['_NO'] = 0;
    }
}
if ($ele_type == "subform") {
    if (!$_POST['elements-ele_value'][3]) {
        $processedValues['elements']['ele_value'][3] = 0;
    }
    $processedValues['elements']['ele_value'][1] = implode(",", $_POST['elements_ele_value_1']);
    $processedValues = parseSubmittedConditions('subformfilter', 'optionsconditionsdelete', $processedValues, 7);
    // post key, delete key, processedValues, ele_value key for conditions
}
if ($ele_type == "radio") {
    $checked = is_numeric($_POST['defaultoption']) ? intval($_POST['defaultoption']) : "";
    list($_POST['ele_value'], $processedValues['elements']['ele_uitext']) = formulize_extractUIText($_POST['ele_value']);
    foreach ($_POST['ele_value'] as $id => $text) {
        if ($text !== "") {
            $processedValues['elements']['ele_value'][$text] = intval($id) === $checked ? 1 : 0;
        }
    }
}
if ($ele_type == "checkbox") {
    list($_POST['ele_value'], $processedValues['elements']['ele_uitext']) = formulize_extractUIText($_POST['ele_value']);
    foreach ($_POST['ele_value'] as $id => $text) {
        if ($text !== "") {
 function adminSave($element, $ele_value)
 {
     $changed = false;
     if (!$_POST['elements-ele_value'][3]) {
         $ele_value[3] = 0;
     }
     $ele_value[1] = implode(",", $_POST['elements_ele_value_1']);
     $ele_value[9] = $_POST['elements-ele_value'][9];
     $parsedConditions = parseSubmittedConditions('subformfilter', 'optionsconditionsdelete', array(), 7);
     // post key, delete key, processedValues, ele_value key for conditions
     $ele_value[7] = $parsedConditions['elements']['ele_value'][7];
     $element->setVar('ele_value', $ele_value);
     return $changed;
 }