I am using the gravity form on my site. I am working on create the custom report for this I have need gravity form fields name and id based on specific form id.Please let me know how I can do it.
I am using the following function but it is showing all forms info based on it. it is looking very hard to parse it. Please let me know any function so I can get fields name easily.
$forms = RGFormsModel::get_forms_by_id(13);
try this
It’s not that hard to parse:
P.S. I’m assuming you use Gravity Forms < 1.7 as RGFormsModel::get_forms_by_id is a deprecated function since 1.7
I use the above to get a specific field I want to filter the value of. The $field contains an object with all the properties you want.
You are able to get the entered value/content of a field by using
rgpost()
and by referencing the id ($field->id
).