© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
12 replies
Aravind Ram

Infolist Custom ViewEntry added form field validation.

On a custom Infolist page, I added a new custom ViewEntry with a blade file, needs to validate all fields before performing Infolist submit action.

ViewEntry::make('acceptConsent')->label('')->view('user-consent::infolists.components.consent-option-checkbox'),
ViewEntry::make('acceptConsent')->label('')->view('user-consent::infolists.components.consent-option-checkbox'),


Action::make('saveConsents')
->icon('heroicon-o-check-circle')
->color('success')
->before(function (Action $action) {
$this->validateConsents($action);
})
->action(function (array $data) {
$this->acceptConsent();}),
}
Action::make('saveConsents')
->icon('heroicon-o-check-circle')
->color('success')
->before(function (Action $action) {
$this->validateConsents($action);
})
->action(function (array $data) {
$this->acceptConsent();}),
}
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Can a custom infolist ViewEntry have a FilamentTable?
FilamentFFilament / ❓┊help
3y ago
Custom validation in custom field
FilamentFFilament / ❓┊help
2y ago
Custom form field
FilamentFFilament / ❓┊help
2y ago
Custom Form Field
FilamentFFilament / ❓┊help
2y ago