I have an 'Entity Reference' autocomplete field populated by a view that returns all authenticated user email addresses. I have set the field to 'Required' but when I enter an email address not in the list and save the node, it doesn't trigger an error. It just makes the field blank. Is there anything I can do to force the node not to save if a valid email address has not been entered?

  • You could add your own validation function to the form via a form_alter
    – 2pha
    Feb 22, 2013 at 15:11
  • That would work. I was hoping for something a little simpler that doesn't require code. Thanks
    – user320691
    Feb 22, 2013 at 15:24

1 Answer 1


You should try changing the no results message in the view, maybe have return an invalid address like a@[email protected] or something.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.