0

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.

1

Just take your value direct from the $_POST array.

1
  • Well, I cannot believe i didn't think of that!! Cheers James, perfect!
    – John
    Mar 16 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.