#Filament TextInput Clickable External link

2 messages · Page 1 of 1 (latest)

crystal otter
#

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')
            ]);

    }```
raven solsticeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution