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.

simple set field value

  1. Hi everyone, i have one simple problem i hope:
    in my form i'm using values from fields, to calculate with math some new values. i made hidden fields, to set that results in them, and show after submit, but i cant. here is simple code example:

    add_action("gform_post_submission_1", "set_post_content", 10, 2);
    	function set_post_content($entry, $form)
                  $a= $entry[1];
    		$b= $entry[2];
                  $c = $a + $b;
                  $entry[3] = $c;

    this part: $entry[3] = $c;
    is not working.
    how i can set that new value in field[3] entry?

    Posted 11 years ago on Sunday July 7, 2013 | Permalink
  2. Richard Vav

    If you still require assistance with this please open a new support ticket or a priority support ticket if you are a developer license holder. Thank you.

    Posted 10 years ago on Thursday July 25, 2013 | Permalink

This topic has been resolved and has been closed to new replies.