It is not supported in the plugin as of now but it can be done in lots of different ways.
- you could create a field for the id and then use a gravity forms hook yo automatically populate this field on submission
- you could user JQuery to add an extra column to the table and add a counter that counts the rows in the list any prepends each row with 1,2,3,4,etc
- you could use the entries filter to loop trough all entries be for the list is rendered and add the id to the first column
I’m going to mark this topic as resolved. Please start a new topic if you have other questions.
Thread Starter
Paul
(@eartboard)
Thank you for your answer.
I tried the first option with no luck. Can you give me more details please?
Ok,Ill write you some code. Will you write me a review in return? 😉
Thread Starter
Paul
(@eartboard)
Yes sure! Thank you very much!
Ok, so here it is:
1. Add a field to your form and note the ID of that field
2. Add this code to your functions.php
add_filter('filter_entries','add_entry_id' );
function add_entry_id($entries) {
foreach ($entries as &$entry) {
$entry["xxx"] = $entry["id"];
}
return $entries;
}
3. Change xxx in the code above to the ID of your field (from step 1).