F
Filament7mo ago
Dragos

link to open a modal near a TextInput

Im building a Tenant registration form. I have a TextInput under which i'd like to have a link that opens a modal with some text that helps the user fill the field. I was thinking of using an Action inside helperText but couldn't get it to work. went through the documentation but haven't found anything relevant. is this even doable? any other way? thanks!
2 Replies
LeandroFerreira
LeandroFerreira7mo ago
maybe a hintAction? ->hintIcon('heroicon-m-question-mark-circle', tooltip: 'Need some more information?') or
->hintAction(
Action::make('hint')
->icon('heroicon-o-question-mark-circle')
->iconButton()
->modalContent(new HtmlString('text...'))
)
->hintAction(
Action::make('hint')
->icon('heroicon-o-question-mark-circle')
->iconButton()
->modalContent(new HtmlString('text...'))
)
Dragos
DragosOP7mo ago
works like a charm! cheers!
Want results from more Discord servers?
Add your server