<p>Sure... you'd just do it through whatever input tag you want using the <code>name="fields[fieldHandle][]"</code> syntax passing in the user's ID as the value.</p>

<p>There are examples of that here, under the "Relations" header:</p>

<p><a href="https://straightupcraft.com/articles/craft-cms-field-guide-twig?view=input" rel="nofollow noreferrer">https://straightupcraft.com/articles/craft-cms-field-guide-twig?view=input</a></p>

<p>You won't be able to do that should an anchor link GET request though... <code>EntriesController::saveEntry()</code> is explicitly checking for a POST request, so you'll want to do it though a proper form: <a href="https://craftcms.com/docs/templating/entry-form" rel="nofollow noreferrer">https://craftcms.com/docs/templating/entry-form</a></p>

CC BY-SA 3.0
2017-03-07T19:40:53.300Z
2017-03-07T19:40:53.300Z
Brad Bell
<p>Is it possible to modify an field of an entry within the front-end? Something like this with an action URL:
<code>&lt;a href="{{actionUrl('save/entry', {userfield:user.id}) }}"&gt;add user to userfield of current entry&lt;/a&gt;</code></p>

<form><frontend>
How to modify entry with a users field in the front-end?
# How to modify entry with a users field in the front-end?

(Asked by: username_0 on 2017-03-07)

Is it possible to modify an field of an entry within the front-end? Something like this with an action URL:
`add user to userfield of current entry`

**Tags:** form, frontend


---

## 1 answers

### Answer by username_1 on 2017-03-07. Score: 1 | Accepted answer

Sure... you'd just do it through whatever input tag you want using the `name="fields[fieldHandle][]"` syntax passing in the user's ID as the value.

There are examples of that here, under the "Relations" header:

<https://straightupcraft.com/articles/craft-cms-field-guide-twig?view=input>

You won't be able to do that should an anchor link GET request though... `EntriesController::saveEntry()` is explicitly checking for a POST request, so you'll want to do it though a proper form: <https://craftcms.com/docs/templating/entry-form>


---

