Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author fried_eggz

    (@fried_eggz)

    It is not supported in the plugin as of now but it can be done in lots of different ways.

    1. you could create a field for the id and then use a gravity forms hook yo automatically populate this field on submission
    2. 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
    3. 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
    Plugin Author fried_eggz

    (@fried_eggz)

    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?

    Plugin Author fried_eggz

    (@fried_eggz)

    Ok,Ill write you some code. Will you write me a review in return? ??

    Thread Starter Paul

    (@eartboard)

    Yes sure! Thank you very much!

    Plugin Author fried_eggz

    (@fried_eggz)

    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).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display entry ID’ is closed to new replies.