Dave2084
Dave2084
FFilament
Created by Dave2084 on 9/13/2024 in #❓┊help
How do I access the whole form using $get/$set when inside a repeater with relationship?
I have a fairly complex form that has a repeater that has among other values a "cost" column. When this changes in any row of the repeater I need to update the state of a field outside of the repeater with a total of all the cost fields, however using Filament\Forms\Get and Filament\Forms\Set I can only access the current row of the repeater. How do I: a. Access all records in the repeater to calculate the total. b. Access the wider form so I can use $set to update the total field. Just to make this more awkward this field is in a different relationship (but not a repeater).
5 replies