Editing entry in front-end I am trying to edit an entry automatically when you press a button. Is there a way to do this? 

A bit more detail: I have listed up a few entries, each with their own button. When I press the button on a specific entry, I want the currentUser to be added to the User Field of that entry.

Currently I have managed to get this semi-working with a form where the user can edit the entry through input fields etc., changing their value, then submiting (as outlined under Entry Form in the docs). This is the prossess I want automated. When you press the button in the front-end the entry is edited with values set in the code and submitted. 

Thanks!
Looks like you want to implement a feature to vote for entries. Have a look at these plugins, they make this really easy for you.


https://www.doublesecretagency.com/plugins/upvote
https://github.com/dukt/craft-like


If you want to implement something yourself, I would look into adding the button behavior using JavaScript, listen for click events and send the data over XMLHttpRequests to the entries/saveEntry controller.