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.

Help with updating value for an entry's field within hook gform_after_submission

  1. Subj: Help with updating value for an entry's field within hook 'gform_after_submission'

    I am trying to do some calculations (simple totals adding up of calories based on choices) after the form has been saved and then up date my final values.

    I have two hidden fields ready for these values in my form definition.

    But in the after hook I cannot see how to update the entry with the new values?

    I read this : http://www.gravityhelp.com/forums/topic/editing-updating-field-value-after-submission but it didnt explain how to update the $entry object so that instead of my values being zero I can adjust them to the calories total I have totted up!

    Posted 12 years ago on Tuesday May 8, 2012 | Permalink
  2. I should add I tried to do it in the Pre_submission hook but the entry object was not there and the form object data is quite complex therefore - so I would prefer to do it in the post_hook.

    Posted 12 years ago on Tuesday May 8, 2012 | Permalink
  3. I ddi this using Sessions in the end and passing values into existing hidden fields via javascript.

    Posted 12 years ago on Friday May 11, 2012 | Permalink