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.

Gform After Submission HELP

  1. draney
    Member

    In the code shown here http://www.gravityhelp.com/documentation/page/Gform_after_submission
    What are the numbers inside the [] brackets? ie. $entry['1.3']

    I know they identify the field, but but not sure how that works when my fields are simply 1-6. What are the decimals?

    Posted 12 years ago on Friday October 5, 2012 | Permalink
  2. 1.3 refers to field 1, which is a name type field, and the .3 is the first name. The .6 is the last name. If you are not using complex fields like that, you will not have a .3 or .6.

    Take a look at the page where your form is rendered to get your IDs and use those. Do not rely on the order of the fields in the form builder as they could have been added, deleted, moved, etc.

    You can also use the gform_after_submission hook to dump the $entry array and see exactly what is being stored in the entry. You will have the exact field IDs there.

    However, if you have a simple form with 6 simple inputs, your numbers inside the brackets will likely be 1 through 6.

    Posted 12 years ago on Friday October 5, 2012 | Permalink