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

    (@fried_eggz)

    Thats odd. I just did some test and the value of the hidden field is shown in the table.

    This is what I did:

    1. Added a hidden field
    2. Checked “show in list”
    3. On the fields Advanced tab: added {date_dmy} as default value
    Thread Starter dytonmashall

    (@dytonmashall)

    I did that too but still shows blank…advise what could be the problem?

    Andrei G.

    (@27shutterclicks)

    Thank you for this wonderful plugin.

    I am having the same issue also. Followed your steps above, but date column still blank.

    Is {date_dmy} a default merge tag or does it need to be added somehow?

    Andrei G.

    (@27shutterclicks)

    Ok, I think I figured it out.

    Adding a hidden field and setting {date_dmy} as default value will work for all new entries, but not for the existing entries.

    Since Gravity forms already has a date created field for each entry, there is no need to st it again (via the default value). Instead, leave the default value blank and use the same approach as for displaying the entry id (as shown in the FAQ section of the plugin page).

    How can I add the entry date to the list?
    Add a (hidden) field to your form and note the ID of that field and then add this code to your functions.php

    add_filter('filter_entries','add_entry_date' );
    function add_entry_date($entries) {
        foreach ($entries as &$entry) {
            $entry["xxx"] = $entry["date_created"];
        }
        return $entries;
    }

    Change xxx in the code above to the ID of your new field.

    Plugin Author fried_eggz

    (@fried_eggz)

    @andrei Thank you for providing a solution to the problem. Much apriciated!

    I’ll mark this as resolved then

    Erick

    (@erickbadanai)

    It worked, but could you help me change the format? day / month / year (31/12/15 – 15:22:12 pm)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Entry date not listed’ is closed to new replies.