F
Filament13mo ago
Thijmen

TextInput link

Is it possible to make the TextInput redirect to a url on click?
6 Replies
Patrick Boivin
Patrick Boivin13mo ago
I'm curious, do you really need a TextInput if it's never going to be used to input text?
Thijmen
Thijmen13mo ago
Well what do you suggest? I like te look of the TextInput and it would not look nice if i change that to a Placeholder for example.
Yeraldi29#2900
Yeraldi29#290013mo ago
Don't you like an action istead? but is possible what you want But is a little strange because is an input
Patrick Boivin
Patrick Boivin13mo ago
One option would be to reuse the classes of the TextInput in a custom ViewField and render an <a> instead An action is a good idea also, check #drop-in-action
Thijmen
Thijmen13mo ago
Yeah i know but i have 20 textinput so missing one looks weird Tried that but can't redirect to a new window with laravel
Patrick Boivin
Patrick Boivin13mo ago
Yeah, so you need an <a>