$new_ele_value[4] = $ele_value[3];
     // preserve any association that is going on
     $element->setVar('ele_value', $new_ele_value);
     $element->setVar('ele_type', "text");
     if (!$element_handler->insert($element)) {
         print "Error: could not complete conversion of the element";
     }
 } elseif ($ele_type == "radio") {
     $element->setVar('ele_type', "checkbox");
     // just need to change type, ele_value format is the same
     if (!$element_handler->insert($element)) {
         print "Error: could not complete conversion of the element";
     } else {
         include_once XOOPS_ROOT_PATH . "/modules/formulize/class/data.php";
         $data_handler = new formulizeDataHandler($element->getVar('id_form'));
         if (!$data_handler->convertRadioDataToCheckbox($element)) {
             print "Error: " . _AM_ELE_CHECKBOX_DATA_NOT_READY;
         }
     }
 } elseif ($ele_type == "checkbox") {
     $element->setVar('ele_type', "radio");
     // just need to change type, ele_value format is the same
     if (!$element_handler->insert($element)) {
         print "Error: could not complete conversion of the element";
     } else {
         include_once XOOPS_ROOT_PATH . "/modules/formulize/class/data.php";
         $data_handler = new formulizeDataHandler($element->getVar('id_form'));
         if (!$data_handler->convertCheckboxDataToRadio($element)) {
             print "Error: " . _AM_ELE_RADIO_DATA_NOT_READY;
         }
     }