FilamentF
Filament12mo ago
Jpac14

Update text input dynamic based off other important

I have this form schema
                      Toggle::make('includeTable')
                        ->label('Include table')
                        ->default(true)
                        ->reactive()
                        ->live(),
                      Toggle::make('includeChart')
                        ->label('Include chart')
                        ->default(false)
                        ->reactive()
                        ->live(),
                      Select::make('animation')
                        ->label('Animation')
                        ->options([
                          'none' => 'None',
                          'confetti' => 'Confetti',
                          'Fireworks' => 'Fireworks',
                        ])
                        ->default('none')
                        ->reactive()
                        ->live()
                        ->columnSpanFull(),
                      TextInput::make('url')
                        ->label('URL')
                        ->readOnly()

I would like to update the url text input, based off the other input like crafting a url, localhost:8000/embed?animation=fireworks
Was this page helpful?