I have come to understand that there is no way to change the name attribute on the form fields. This is a big problem for me.
I'm using Gravity Forms on a multisite installation and need to know how I can have users create forms and have the data submit to a 3rd party application. I need to be able to tell the User Admin how to add a parameter that will tell me that "First Name" is actually "first_name".
Right now when I look at the $entry var values this is what I get.
date_created 2012-08-21 16:00:02,
user_agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20100101 Firefox/14.0.1, status active,
Now I could obviously code something using the gform_after_submission hook to turn the $key "1" into "first_name" then submit it. Sounds easy enough...
The problem is I won't know what 1 equals.
I thought about using jQuery to rewrite the name attribute on the input using a css class on the parent li. That opened another can of worms because the form stopped validating.
Then I thought about using the query string functionality but it only allows for GET. On that note is there a hook that will grab those values before the form is submitted or validated? If so what am I looking for?
Is there anyway you can think that would give me the ability to know what field is which without having prior knowledge of the form markup?