Please Note: We are no longer using forums to facilitate standard support. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

hook for after a form has been updated (on the admin side)

  1. I would like to know if there is a hook for after a form has been updated (on the admin side). What I need to do is add/update a description to a category based on what someone has typed in the description of the 'Form Settings' box, besides some other things I need to happen automatically after an admin has updated a form. If there is not this hook, please tell me how to create it or otherwise tell wordpress when a form has been updated in the functions.php

    Posted 3 years ago on Friday February 17, 2012 | Permalink
  2. Could someone even make a suggestion of what I could do, or guide me towards a solution, even if it may be partial? This is some what pressing to my client.

    Posted 3 years ago on Friday February 17, 2012 | Permalink
  3. Hey, I got an email saying I received a response from Carl... but it isn't here.

    Posted 3 years ago on Friday February 17, 2012 | Permalink
  4. Yes, there is a hook, although it is not yet documented.
    Here is a snippet to point you in the right direction.

    add_action("gform_after_save_form", "form_saved", 10, 2);
    function form_saved($form, $is_update){
       //if this is not a new form, do something
       if($is_update){
           //do something
       }
    }
    Posted 3 years ago on Friday February 17, 2012 | Permalink
  5. THANK YOU SO MUCH! You really helped me out! This solves a HUGE issue for me!

    Posted 3 years ago on Saturday February 18, 2012 | Permalink
  6. @smarie33,

    Has this worked for you? I am trying it but with no luck. Please advise if you got it working, thank you.

    Posted 3 years ago on Tuesday March 6, 2012 | Permalink
  7. Actually I just noticed that this action may apply to saving form details, but not entry details. I wish to do something after a form's entry details have been updated. Is there a hook for this?

    Thank you.

    Posted 3 years ago on Tuesday March 6, 2012 | Permalink

 

Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only