Custom page form repeater livewire error: property does not exist

This happens whenever I have a field inside of the repeater, i tested with select and text input
class PeticaoInicialFormPage extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.peticao-inicial-form-page';

protected static ?string $navigationLabel = 'Criar Petição Inicial';

protected static ?string $title = 'Petição Inicial';

public function form(Form $form): Form
{
return $form
->schema([
Repeater::make('index')
->label('')
->collapsible()
->addActionLabel('Adicionar Tema')
->schema([
TextInput::make('Nome')
]),
]);
}

protected function getHeaderActions(): array
{
return [
Action::make('Gerar')
->requiresConfirmation(),
];
}
}
class PeticaoInicialFormPage extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.peticao-inicial-form-page';

protected static ?string $navigationLabel = 'Criar Petição Inicial';

protected static ?string $title = 'Petição Inicial';

public function form(Form $form): Form
{
return $form
->schema([
Repeater::make('index')
->label('')
->collapsible()
->addActionLabel('Adicionar Tema')
->schema([
TextInput::make('Nome')
]),
]);
}

protected function getHeaderActions(): array
{
return [
Action::make('Gerar')
->requiresConfirmation(),
];
}
}
the blade file ```<x-filament-panels::page> {{ $this->form }} </x-filament-panels::page>
Solution:
And then use InteractsWithForms
Jump to solution
3 Replies
Matthew
Matthew3w ago
You should also implement HasForms
Solution
Matthew
Matthew3w ago
And then use InteractsWithForms
Firebat
FirebatOP3w ago
It worked, thanks Matthew.

Did you find this page helpful?