Answers.Body: <p>Currently no. Technically this field simply stores an integer (contact ID) and that's all the webform module knows about. There is probably a way to override this error message to supply the contact name via a hook but would require some work by a developer. A <a href="https://github.com/colemanw/webform_civicrm" rel="nofollow">pull-request</a> for this improvement would be welcomed.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-28T15:21:47.460Z
Answers.LastActivityDate: 2015-05-28T15:21:47.460Z
Answers.UserDisplayName: Coleman
Body: <p>Civi webform where I have a field 'existing contact' as an autocomplete. It needs to be unique i.e. one per contact (in this case contact = Constituency), so I have checked 'Unique' in the field settings. </p>
  
  <p>When you submit the form with a non-unique value you get the error message: </p>
  
  <blockquote>
    <p>The value 106320 has already been submitted once for the Constituency
    field. You may have already submitted this form, or you need to use a
    different value.</p>
  </blockquote>
  
  <p>Is there anyway to show the contact Display name instead of the ID in this error message?</p>
  
  <p>Thanks</p>
  
Tags: <webform-civicrm>
Title: Civi webform: change error message for unique entry
ThreadText: # Civi webform: change error message for unique entry
  
  (Asked by: username_0 on 2015-05-28)
  
  Civi webform where I have a field 'existing contact' as an autocomplete. It needs to be unique i.e. one per contact (in this case contact = Constituency), so I have checked 'Unique' in the field settings.
  
  When you submit the form with a non-unique value you get the error message:
  
  > The value 106320 has already been submitted once for the Constituency
  > field. You may have already submitted this form, or you need to use a
  > different value.
  
  Is there anyway to show the contact Display name instead of the ID in this error message?
  
  Thanks
  
  **Tags:** webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-05-28. Score: 2 | Accepted answer
  
  Currently no. Technically this field simply stores an integer (contact ID) and that's all the webform module knows about. There is probably a way to override this error message to supply the contact name via a hook but would require some work by a developer. A [pull-request](https://github.com/colemanw/webform_civicrm) for this improvement would be welcomed.
  
  
  ---
  
  