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.

Append to last name using gform_pre_submission

  1. I'm trying to append a description from a text field to a name field using gform_pre_submission using this code below:

    add_action("gform_pre_submission_38", "desc_append");
    function desc_append($form){
        $_POST["input_3.6"] = $_POST["input_3.6"] . ' ('.$_POST["input_2"].')';
    }

    My goal is to end up with First Last (Description) in the name field.

    As I'm understanding, this should append the description to the last name, but it's not working. When I use the same code to append a text field to another text field (input_1) it is working fine, so I know I'm close. I assume it is something to do with the input_3.6 for the Last Name. Any help is appreciated.

    Posted 10 years ago on Thursday May 9, 2013 | Permalink
  2. Handling via priority support.

    Posted 10 years ago on Monday May 13, 2013 | Permalink

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