Is it somehow possible to access the value of a different field?
I am trying to use the value of a different field as label for another one.
I tried it like so:
But that seems not work. Help is much appreciated π
6 Replies
Yes. Use
fn ($record)
Not sure which one it is in repeatable though. π€Thanks, but if I use $record I dont have access to the operating_expenses array
I need to access the array in the specific iteration to get the corresponding name for the cost
Can't you just pass Callable $get and use $get('operating_expenses_name') ?
If I do so I get
Oh this is infolists. Ok that changes a bit.
Saw this on a discussion on the filament repo, you can trial and error to access the Model $record relation with it.
Thanks I will try it π
Somehow the index does here not increase