set referenced entity programmatically I have a view that displays a content type "offers" for a specific "task" (content type), the "task" content type has an entity reference field that reference an "offer". The view shows the title of the "offers" and in front of each title a button "Select this offer for your task"

I want that when I click the button "Select this offer for your task" set the value of the entity reference field I have in the "task" node, for reference the offer I have selected from the view

Is this possible?
Thanks for your help.
Because you are already using Views, consider using the Rules with Rules Link module.  This kind of setup could be done quite easily and even stored in a Feature so that the changes could be maintained in a git repository.