I'm having problems with a required field that is an entity reference. This is my case:
I have a content type advertisement
that has an entity reference product
, what is an autocomplete widget. The entity reference is a required field (so when it's empty you have to fill something in).
When you start to type in the text field you get a list of suggestions to select from. But you can also type some text and DON'T select a suggestion, the form will submit and the content will be created. I don't want that. I would like to create an error that when you don't select one from the list you receive an error.
What happens when you don't select a suggestion: the advertisement is created but the product is empty!
Is there a way that I can create an error when you don't select one from the list?