Forum Academy Marketplace Showcase Pricing Features

Creating a Receipt: How to show only the last record created?

Hi
How can I only show the last created record on my data type?

I have a data type called orders that has a data field for list of products and I would like to display the recent order created.

I tried the :firstitem condition but all the records from the data type get displayed instead of just the last one.

Basically I would like to create a receipt once the user pays the products in the cart page

Your group data type would be Order

The data source would be Do a search for Orders
Sort by date created, descending no, then close out of the little search widow, then do :last item

The inside the Order group you can have a repeating group of all the products ordered, etc

2 Likes

Thank you very much

1 Like