• Resolved mdanielpk

    (@mdanielpk)


    Hey Doeke,

    Hope you’re doing well.

    I wanted to ask if it was possible to sort out the exported file by (last modified date)? currently we have sort by (entry created date). Is that possible?

    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Doeke Norg

    (@doekenorg)

    Hi Daniel,

    Well yes and no..

    You can sort the data by anything that gravityform supports, by hooking in to gfexcel_output_sort_field_{formid} like so:

    // here we sort the form with an id of 5
    add_filter('gfexcel_output_sort_field_5', function ($current_field) {
        return 'date_updated';
    });

    That is/was the **yes** part.

    Unfortunately the **no** part here, is that (at least on my version of Gravityforms) the column date_updated is empty, and therefor can not be sorted by.

    As soon as this is fixed in GF, you can use this. But until then, I’m sorry ??

    Thread Starter mdanielpk

    (@mdanielpk)

    Thanks Doeke,

    That’s too bad, but i’ll keep a lookout for future updates on this one. Thanks again ??

    Thread Starter mdanielpk

    (@mdanielpk)

    Hey Doeke,

    Just got confirmation from the GF support team, that this is being worked on and to be released as a “functional” option in GF v2.4. Here’s the reply i received incase anyone else happens to be looking for a solution, Cheers ??

    While we did add a date_updated column to the database in version 2.3 it is not currently used. In version 2.4 which is currently in development we will be updating the plugin to populate the column when the entry is saved and updated, the value will also be available for display and export.

    Plugin Author Doeke Norg

    (@doekenorg)

    Nice! Thanks for sharing!

    Thread Starter mdanielpk

    (@mdanielpk)

    No problem ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sort by (Last modified date)’ is closed to new replies.