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.

Passing form field to functions.php

  1. dannybull
    Member

    Can you pass the value of a form field to functions.php from a Gravity Forms form?

    Many thanks in advance.

    Posted 14 years ago on Monday October 18, 2010 | Permalink
  2. What exactly are you trying to do? There are hooks you can use to access form field values after a form is submitted. If you describe what you are trying to do I can point you in the right direction.

    Posted 14 years ago on Monday October 18, 2010 | Permalink
  3. dannybull
    Member

    Thanks for the quick reply Carl. I'm using Gravity Forms to create a post that is converted into a page in functions.php using change_post_type. In this function we set the parent of the page using $post_data["post_parent"]. I need to be able to set the parent page id from a value in a drop down on the Gravity Form - hence the reason for wanting to pass form field values to functions.php.

    Posted 14 years ago on Tuesday October 19, 2010 | Permalink
  4. dannybull
    Member

    Carl, mentioning hooks in your earlier post was enough information - all I need to do is access a form fields data using $_POST["input_8"] (input_8 being the name of the form field value I need).

    Thanks for your help.

    Posted 14 years ago on Tuesday October 19, 2010 | Permalink