<p>Just take your value direct from the <code>$_POST</code> array.</p>

CC BY-SA 4.0
2021-03-16T10:42:06.653Z
Well, I cannot believe i didn't think of that!! Cheers James, perfect!
John
CC BY-SA 4.0
2021-03-15T18:00:05.933Z
2021-03-15T18:00:05.933Z
James Smith
<p>I'd like to add a form field into the details bar on the entry edit page, so that when the entry gets submitted, the form field value gets passed into the data payload so that I can pick it up from the EVENT_BEFORE_SAVE event.</p>
<p>However, it does not seem to get passed into the data I can see in that hook. Is there any way to do this? I want to give the user an option to tick a box that on save of the entry, it sends some data off to a third party API.</p>

<plugin-development><modules>
Add a form field into the details bar on the entry edit screen and do something with the value
# Add a form field into the details bar on the entry edit screen and do something with the value

(Asked by: username_0 on 2021-03-15)

I'd like to add a form field into the details bar on the entry edit page, so that when the entry gets submitted, the form field value gets passed into the data payload so that I can pick it up from the EVENT\_BEFORE\_SAVE event.

However, it does not seem to get passed into the data I can see in that hook. Is there any way to do this? I want to give the user an option to tick a box that on save of the entry, it sends some data off to a third party API.

**Tags:** plugin-development, modules

---

## 1 answers

### Answer by username_1 on 2021-03-15. Score: 1 | Accepted answer

Just take your value direct from the `$_POST` array.

> **Comments:**
> **username_0**: Well, I cannot believe i didn't think of that!! Cheers James, perfect!  

---

