Showing one entry per group in a View
A View lists every entry that matches its filters. When a form holds several entries for one group, such as a pottery class with a session every month, the View lists that class once per session.
GravityView has no setting that removes the repeats. These ways show each group once, or group the repeats under one heading:
| Way | What visitors see | Upkeep |
|---|---|---|
| Star one entry per group | One entry per group, with any of its fields | You star an entry when a group starts |
| Show the next date of each group | One entry per group that has a date in the coming period | None |
| Keep one entry per group in a form of its own | One entry per group, with its other entries on its own page | You add an entry when a group starts |
| List the groups with a GravityMath summary | Each group’s name as plain text, with a count or a total | None |
| Group the entries in a DataTables View | Every entry, under one heading per group | None |
Advanced Filtering is built into GravityView Pro, and the first two ways use it. To turn it on or off, go to Plugins, click Features in the GravityView Pro row, and click Turn on or Turn off in the Advanced Filtering row.
Star one entry per group #
Gravity Forms shows a star next to each entry on its Entries screen. You star one entry of each group, and the View then lists only the starred entries.
- Go to Forms, then click Entries, and choose your form at the top of the page.
- Click the star next to one entry of each group. The star turns orange.

- Edit the View, click the Filter & Sort tab in the Settings box, and click Add Condition under Advanced Filter.
- Set the condition to Starred
isYes.

- Click Update.
The View then lists one entry per group:

The condition belongs to this View, so the form’s other Views keep listing every entry.
Starred entries are featured
The rows above are pale yellow because, while Featured Entries is on, a starred entry is also a featured entry. The form’s other Views highlight it too, and keep it in its usual place in their order while Move Featured Entries to Top is off, as it is in new Views. To keep the rows plain:
- Go to Forms, hover over your form, and click Settings.
- Click Featured Tiers, then click the Featured tier.
- Under Row or card color, choose No color, and click Done.
- Click Save Tiers.
Getting started with Featured Entries explains featured entries and their tiers.
Keep the stars up to date
New entries come in without a star, so give a new group a star too, such as the first session of a new class. If you delete old entries from time to time, keep the starred entry, or star another entry of the group, so the group stays in the View.
To see which entries have a star, click Starred above the table on the Entries screen.
Show the next date of each group #
When every group has one entry per period, such as a class that meets once a month, filter the View on the date. A View limited to the coming month then lists each class once, with its next session, and needs no upkeep.
- Edit the View, click the Filter & Sort tab in the Settings box, and click Add Condition under Advanced Filter.
- Set the condition to your date field,
is after, Yesterday. - Click + AND below the condition group.
- Set the new condition to the same date field and
is before. Choose Custom Value, and type+1 month. - Click Update.

The View then lists each class with its next session:

A group with two dates in the coming month appears twice, and a group with no date in it doesn’t appear at all. Set the custom value to match the schedule, so that each group has one date in the period.
Keep one entry per group in a form of its own #
When each group has details of its own, such as a class’s teacher and price, keep them in a second form with one entry per group. A View of that form lists each group once. To let visitors open a group’s own page, click the gear icon on the field that shows the group’s name, such as Class, and turn on Link to single entry.
To show a group’s other entries on that page, add a Connected View field to the Single Entry layout of the View. In this page’s example, its settings are:
- View to embed: the View of the sessions.
- Show as: Show the matching entries here.
- Which entries it shows: the sessions whose Class
matchesthis entry’s Class.
Each class’s page then lists its own sessions. How to embed a View inside another View to show related entries has the steps, and the field’s name on sites without Connected Views. When each entry stores the ID of its group’s entry, Getting started with Connected Views shows how to link the two Views from a dialog.
List the groups with a GravityMath summary #
A GravityMath summary groups entries by one field and shows a table with one row per group. Its two columns are the group’s name and a count or a total. The names are plain text, so visitors can’t click through to a group’s entries.
This shortcode lists each class of form 12 with its number of sessions, where 1 is the ID of the Class field:
[gravitymath action="summary" form_id="12" group_by="1" operation="count"]How to display summaries using a block, widget, or shortcode has the block, the widget and the other settings.
Group the entries in a DataTables View #
To keep every entry and add one heading per group, turn on RowGroup in a DataTables View. The table then lists each group’s entries under a row with the group’s name, and the column it groups by still shows the name in each row. Grouping rows by common field values has the steps.