How can I display only the last 5th entry (entry creation date) of a form?

By: Disha Garg | Asked: 01/29/2024
ForumsCategory: How-toHow can I display only the last 5th entry (entry creation date) of a form?
Disha GargDisha Garg asked 11 months ago
How can I display only the last 5th entry (entry creation date) of a form? 
1 Answers
Rob LeVineRob LeVine answered 11 months ago
In a view you use the Limit and Sort Entries features. To get the last entry. set Limit to 1 and sort by creation date, descending.
Attachments
Disha GargDisha Garg replied 11 months ago

I want to get the last fifth entry, Not the last entry in particular. -5 index, i can say. Last 5th entry which is created by current user

Rob LeVineRob LeVine replied 11 months ago

Then I suggest creating a custom shortcode and do the work in a PHP program using either the Formidable functions such as FrmEntry::getAll or direct SQL commands following the database schema - https://formidableforms.com/knowledgebase/database-schema/ Either way, it's just a few lines of code.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right