Form does not display filled data.

Please advise. I tried to fill the form with parent data for Relation Manager CreateAction form. It works if I have Fileupload field. Without Fileupload field, the field full_name, staff_no just does not filled or display on the form. My inspection found that Fileupload will do some livewire update to backend and refresh the form data. If I don't have this field, how I fill the form with some set of data. #relationmanger #customform
No description
No description
3 Replies
Dennis Koch
Dennis Koch4w ago
The form method is for getting the schema not filling the form. Why are you even trying to fill it manually?
LeandroFerreira
You could use a placeholder
Forms\Components\Placeholder::make('full_name')
->content(fn(RelationManager $livewire):string => $livewire->getOwnerRecord()->full_name)
Forms\Components\Placeholder::make('full_name')
->content(fn(RelationManager $livewire):string => $livewire->getOwnerRecord()->full_name)
zenepay
zenepay4w ago
Sometimes, we want the owner record information to save in to a relation form, or just to view for user friendly purpose. Thank you for this. In fact, I can set default value to the form as well, it works that way. But I wonder that why if I have uploadFile field in the form, it just works using current method. I would like to understand how to life cycle work and hook to anyways, so, Filament will not have any limitation on developing for any projects.