I'm working on an integration, using gform_after_submission and the $data array.
I was wondering if there's an easy way to make the array names more meaningful / consistent across multiple forms?
For e.g. two forms with a Field calls "My Field", in one might have the ID 1 and in the other might be ID 2. As it stands, I need to map each form manually because I have to manually say that "My Field" is $data[1] in Form A, and $data[2] in Form B.
I'd like for both to just be accessible as $data["MyField"]
The reason I ask, is, I want this integration to work standard across multiple forms. As it stands, I would need to map all of the field IDs to a name then run it through the processor. I'd like to have GF do that for me though, so I don't need to map each form manually (allowing me to create and launch forms with ease).
I suspect the answer is no, not without some major modifications. But you never know!
Even if it was some easy way to map the Field ID to whatever the Field Label is in the form design. Or even the Admin Label.