Customizing data before filling the form
mutateFormDataBeforeFill doesn't work in infolist. the method doesn't get called at all. Wondering what i did wrong.
Solution:Jump to solution
mutateFORMDataBeforeFill
is for forms as the name states. I don't think there is a similar method for infolists and I don't think it's necessary because you can just manipulate the ouput on a field level via ->formatStateUsing()
2 Replies
Solution
mutateFORMDataBeforeFill
is for forms as the name states. I don't think there is a similar method for infolists and I don't think it's necessary because you can just manipulate the ouput on a field level via ->formatStateUsing()
Noted. but I got the idea from the doc anyways https://filamentphp.com/docs/3.x/panels/resources/viewing-records#customizing-data-before-filling-the-form