</p> </fieldset> <fieldset class="widefat inline-controls"> <p> <label style="margin-left:0"> <?php echo __('Duplicate Record Preference', 'participants-database') . ': '; $parameters = array('type' => 'dropdown', 'name' => 'match_preference', 'value' => $match_preference, 'options' => array(__('Create a new record with the submission', 'participants-database') => 0, __('Overwrite matching record with new data', 'participants-database') => 1, __('Show a validation error message', 'participants-database') => 2, 'null_select' => false)); PDb_FormElement::print_element($parameters); ?> </label> <label> <?php echo __('Duplicate Record Check Field', 'participants-database') . ': '; $parameters = array('type' => 'dropdown', 'name' => 'match_field', 'value' => $match_field, 'options' => array_merge(PDb_Settings::_get_identifier_columns(), array('Record ID' => 'id'))); PDb_FormElement::print_element($parameters); ?> </label> </p> </fieldset> <p><?php _e('<strong>Note:</strong> Depending on the "Duplicate Record Preference" setting, imported records are checked against existing records by the field set in the "Duplicate Record Check Field" setting. If a record matching an existing record is imported, one of three things can happen, based on the "Duplicate Record Preference" setting:', 'participants-database'); ?> </p> <h4 class="inset" id="match-preferences"><?php _e('Current Setting', 'participants-database'); ?> : <?php $preferences = array('0' => sprintf(__('%sCreate New%s adds all imported records as new records without checking for a match.', 'participants-database'), '<span class="emphasized">', '</span>', '</span>'), '1' => sprintf(__('%sOverwrite%s an existing record with a matching %s will be updated with the data from the imported record. Blank or missing fields will not overwrite existing data.', 'participants-database'), '<span class="emphasized">', '</span>', '<em class="match-field">' . Participants_Db::$fields[$match_field]->title . '</em>'), '2' => sprintf(__('%sDon't Import%s does not import the new record if it matches the %s of an existing one.', 'participants-database'), '<span class="emphasized">', '</span>', '<em class="match-field">' . Participants_Db::$fields[$match_field]->title . '</em>'));