FilamentF
Filament12mo ago
Firebat

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(),
        ];
    }
}

the blade file
```<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
Solution
And then use InteractsWithForms
Was this page helpful?