Title: POST-PROCESS RUN ACTION
Last modified: June 13, 2019

---

# POST-PROCESS RUN ACTION

 *  [Charles Luck](https://wordpress.org/support/users/mantoyco/)
 * (@mantoyco)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/post-process-run-action/)
 * I use the run action to execute a function in a custom plugin that I created 
   for this form. The purpose, to format the form information for an HTTP POST to
   a remote API.
    `$result = file_get_contents($url, false, $context);`
 * If that $result === FALSE or the $result contains a failure message, I want to
   return to the form with an informative message for the user.
    “!! An error has
   occured. Please, try again later.”
 * However, a return array(‘error’ => TRUE, ‘note’ => “!! An error has occured. 
   Please, try again later.” );
 * Does not work.
    I’m thinking that the run action does not accept a value upon
   return. Eh? Any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpost-process-run-action%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘POST-PROCESS RUN ACTION’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Charles Luck](https://wordpress.org/support/users/mantoyco/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/post-process-run-action/)
 * Status: not resolved