FilamentF
Filament16mo ago
AJN

Filament TextInput Clickable External link

I have an action and I want to make a TextInput field clickable so it opens the link of the tab, is there anyway to do this? I read the docs but didn't find anything
    public function clubAction(): Action
    {
        return ViewAction::make('viewClub')
            ->record(function (array $arguments) {
                return Club::find($arguments['id']);
            })->label("Run Club In The DMV")
            ->form([
                TextInput::make('name')->url(fn (string $record): string => 'https//:www.google.com')
                    ->openUrlInNewTab()
                    ,
                TextInput::make('website')
                    ,
                TextInput::make('instagram')
            ]);

    }
Was this page helpful?