TagsInput Validation

How can i apply a validation rule to individual tags, of a TagsInput.
Forms\Components\TagsInput::make('tags')
->alphaDash(), //This always fail
Forms\Components\TagsInput::make('tags')
->alphaDash(), //This always fail
10 Replies
ZedoX
ZedoXOP2y ago
Found a method called ->nestedRecursiveRules, that seems to work but it does not display the validation error.
Forms\Components\TagsInput::make('tags')
->nestedRecursiveRules('alpha_dash'),
Forms\Components\TagsInput::make('tags')
->nestedRecursiveRules('alpha_dash'),
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Dan Harrin
Dan Harrin2y ago
it should display a validation error when the form is submitted
ZedoX
ZedoXOP2y ago
Maybe because the form I tried is in a modal?
Dan Harrin
Dan Harrin2y ago
should work
ZedoX
ZedoXOP2y ago
Hi it won't stop you from adding tags, but will prevent saving My issue was, validation does indeed work as expected, but the error wasn't display on the input
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ZedoX
ZedoXOP2y ago
Why not SelectFilter with ->multiple() and ->relationship()
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jaocero
jaocero13mo ago
Is there any solution for this? as you can see the recursive validation is broken
No description
Want results from more Discord servers?
Add your server