PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. 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.

Possible bug in using gform_after_save_form hook

  1. Hi,

    I'm currently using the gform_after_save_form hook but I'm not getting the changed values unless I save it twice. I investigated the issue and it looks like the RGFormsModel::get_form_meta($id); in form_detail.php is returning a cached form meta.

    Steps to reproduce:
    1) Add a hook for gform_after_save_form. code something so you can see the title of the saved form.
    2) Open an existing form.
    3) change the title.
    4) save it.
    5) The code from step 1 outputs the old title (at least for me anyway).

    Please let me know if you can reproduce this or if something could be wrong with my setup/environment.

    Posted 8 years ago on Friday May 10, 2013 | Permalink
  2. Hi,

    I'm using gravityforms v1.7.2 and have reproduced the issue on a clean wordpress install. To see the what is wrong simply create a form, add the function below to the default theme functions file, change the form title through the UI and you'll see that the var dump is the old title. Please help.

    function my_save_form($form) {
    add_action( 'gform_after_save_form', 'my_save_form');

    Posted 8 years ago on Tuesday May 14, 2013 | Permalink
  3. Even though no one replied to me, thanks for fixing this as of v1.7.5.

    Posted 8 years ago on Friday May 24, 2013 | Permalink