© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
3 replies
phydeaux

Change repeater field label based on other field value

I have a wizard form and there's a repeater on step 4. I'd like to change the label of one of the fields inside the repeater based on the value of a field on step 1. It works fine if it's outside the repeater but the $get('fieldname') comes back NULL if it's inside. Is there a way to pass that field value into the repeater somehow so it can be accessed and passed into the label() closure?

I can provide code snippets if necessary.
Solution
If anyone else needs something like this, I was able to pass in the
$livewire
$livewire
object instead of
$get
$get
. Then you can evaluate
$livewire->data['fieldname']
$livewire->data['fieldname']
within the closure.
Jump to solution
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

Repeater based on other iterations
FilamentFFilament / ❓┊help
3y ago
Form field value based on 2 other fields
FilamentFFilament / ❓┊help
13mo ago
How to calculate field value based on two other fields?
FilamentFFilament / ❓┊help
3y ago
Auto add empty repeater based on a value in another field
FilamentFFilament / ❓┊help
2y ago