I am using entity reference to refer another content type. But in the list I am getting unpublished content also. Because I have given permission to view Unpublished content, but I don't want to show them here. So how can I restrict those content from displaying in Entity referred field value.
While adding entity reference field to the content type,
In Field Setting--> Entity selection-->Mode -->Select Views and create a view by filtering only Published content, and assign the same to "View used to select the entities *"
Hope this will help you in building views link