FilamentF
Filament2y ago
11 replies
Eric

How to modify Toggle so I can add a link

I want the text "the privacy policy" to be a hyperlink. How can i achieve it?

Forms\Components\Toggle::make('accepts_privacy_policy')
    ->label(__('I accept the privacy policy'))


(I was trying:
 // ->state(function () {
 //     return new HtmlString(
 //         '<a href="#">test</a>'
 //     );
 // })
)
Screenshot_2024-04-18_at_15.50.53.png
Was this page helpful?