13 Replies
Not sure but something you can try:
I tried this, it will just output the HTML π¦
Ok... this would have been too easy π
So I'm not sure how you would go about it correctly, but I think a workaround could be to just output a custom error message in this case, maybe something like this in your Blade template:
I'm using the Filament Admin Panel where i have a custom validation for a
Select
. @pboivinOk, makes sense. So maybe one option would be to show a custom error message in a
View
component... are you familiar with that?I have done it before in Laravel itself, but not sure how i would do it in Filament Panel π€
Example what im currently doing:
https://laravel.com/docs/10.x/validation#using-rule-objects
Yes, I think your approach is correct but the only issue is the HTML doesn't work in the validation error message...
So you said you would solve it via a view?
It's a workaround. Basically I'm trying to think of a way for you to display your custom HTML.
I mean.. its not a big deal basically sometimes i give a validation error where i indicate what Customer is using something and then that customer name would be a link to the CustomerResource.
I was just wondering if it could be done easily, but seems like its not how its meant to work π€£
Hehe. I feel like there's a way, just I can't quite remember. I'm sure I did it in the past π΅βπ«
Hmmm