Dynamic text/header in RelationshipManager modal

Is there anyway we can achive a dynamic content for a PlaceHolder field, based on the current record (not the owner record) ?

Ie. I want a header of sorts that is based on the data extracted in mountUsing()

        return \Filament\Tables\Actions\Action::make('Anvendelse')
            ->mountUsing(function (Forms\ComponentContainer $form, \App\Models\Ownership $record) {
                return $form->fill([
                    'test' => $record->created_at,
                ]);
            })
            ->form(
                [
                    Placeholder::make('apartment1')->content($rm->ownerRecord),
                    Forms\Components\TextInput::make('test'),
                ])
        ;
Solution
Figured it out... simple really 🫣

Placeholder::make('test')->content(function ($state) {return new HtmlString($state); }),


With the test data filled using mountUsing
Was this page helpful?