Hide Default Input Errors #2113
Replies: 2 comments
-
|
@AdamRV9 If you 'break out' a <flux:field>
<flux:label>Email</flux:label>
<flux:input wire:model="email" type="email" />
<flux:error name="email" />
</flux:field>You can just leave out the |
Beta Was this translation helpful? Give feedback.
-
|
@jeffchown Thanks for the suggestion. I've got a lot of form fields across a lot of pages, so this approach won't scale. I think this should be an option because a common error box for all fields is a common use case. The other option I see is to publish the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've implemented a custom error box at the top of my forms to display validation messages.
As the default
flux:errormessages are hard coded into the components viawith-field.blade.php, they are shown alongside my custom messages.It would be useful to have a prop to disable the default error messages, but still use
$labelor$description.Beta Was this translation helpful? Give feedback.
All reactions