Limit Entity Reference to published nodes Here is a content type structure called Bill :


  
  Bill_ID => Int
  Bill_Date => Date
  Services => Entity Reference (Target Type : Node , Target Bundle : Service , Widget : Auto-complete)
  


The only problem is that the end user shouldn't be allowed to make a reference to an unpublished Service.

So how can we limit user to only make a reference to published contents ?
Create a view with entity reference display. Click add and in the drop down you will see entity reference.

Now create a view and create a filters normally as you do. Now go to your content type services field settings and click views instead of simple selection

Select the views you created and your options will be limited to the result of the view.