Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8132561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:22:48+00:00 2026-06-06T09:22:48+00:00

How do i get the values of specific input elements inside the gform_after_submission hook

  • 0

How do i get the values of specific input elements inside the gform_after_submission hook in Gravity Forms?
I can get the labels with

foreach($form['fields'] as $k=>$v)
{
    $label=$form['fields'][$k]['label'];
}

but how do I get the values?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:22:49+00:00Added an answer on June 6, 2026 at 9:22 am

    Following the Gravity guidelines you set up the hook to call your own function – in the case below the function is after_submission().

    You can access the input values of individual form elements using their IDs like so;

    add_action("gform_after_submission", "after_submission", 10, 2);
    
    function after_submission($entry, $form){
    
        $name = $entry["2"];
        $address = $entry["17"] . ', '. $entry["18"] .', '. $entry["19"];
    
    }
    

    The IDs are all there in the form fields title in the backend, just hover over each one and it’ll give you the type and ID (ie ‘Single Line Text: Field ID 2).

    http://www.gravityhelp.com/documentation/page/Gform_after_submission

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can get all triples with value null in specific field? All people with date_of_birth
I use jQuery to get values of presaved elements from some websites, using paths
I'm trying to display a specific block of html with some form elements based
How can I get the Cartesian product (every possible combination of values) from a
I have a form where I have to have the input elements ordered specifically.
I have a form containing 2 input fields, one being hidden and a button.
I'm trying to get a specific value from a mysql_fletch_assoc array. I explain. Here
How to get the value on a specific row by searching? i.e., I have
I have a simple dropdown and want to get the specific value of an
I need to get the value of a field with a specific annotation, So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.