Can you pass the value of a form field to functions.php from a Gravity Forms form?
Many thanks in advance.
Can you pass the value of a form field to functions.php from a Gravity Forms form?
Many thanks in advance.
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.
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.
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.