Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display date column / filter by date #21

Open
globatum opened this issue Aug 16, 2018 · 1 comment
Open

display date column / filter by date #21

globatum opened this issue Aug 16, 2018 · 1 comment

Comments

@globatum
Copy link

How can we filter all form entries by a certain time period i.e Jan 1, 2018 to Aug 17, 2018 from a form’s sticky list settings?

second question if the above is not yet possible, how can we display the date and time of the submission in the table created from [stickylist id=1″]?

@13pixlar
Copy link
Owner

13pixlar commented Feb 5, 2019

Yes. You can use the filter filter_entries to filter out any entries you dont want to show. This example filters out entries based on filed value but you could modify it to filter by date.

function hide_some_rows($entries) {
    foreach ($entries as $entryKey => $entryValue) {
        if ($entryValue["1"] == "some-text") {
            unset($entries[$entryKey]);
        }
    }
    return $entries;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants