© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
1 reply
Lucas de Mello

Get Index of Repeater

Hello everyone,

I’m working on a personal project: a Gym Management System. In this system, I need to create Workouts, and each workout is divided into multiple Divisions, with each division containing several Exercises. Here's the structure:
Workout
Division 1
Exercise 1
Exercise 2
Exercise 3
Division 2
Exercise 1
Exercise 2
Exercise 3
Division 3
Exercise 1
Exercise 2
Exercise 3

To implement this, I’m using a Repeater field for the divisions. Each division contains fields for its name and related exercises. What I want is for the Division name to be generated automatically based on its position in the list (e.g., "Division 1", "Division 2", etc.) as new divisions are added.

Currently, I’ve set a default value for the name field, but it’s always assigning the same name (e.g., "Division 1") to all divisions, instead of dynamically updating based on the index.

Does anyone have suggestions or best practices for implementing this? Ideally, I’d like the names to update automatically based on their index in the Repeater.

Thanks in advance for your help!
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Get the index of a repeater?
FilamentFFilament / ❓┊help
17mo ago
Get the index of current repeater item
FilamentFFilament / ❓┊help
12mo ago
Repeater Index
FilamentFFilament / ❓┊help
3y ago