Bug description
Continuation to the recent, unanswered discussion: #10984
When adding the validation required to a Checkboxes field, the form cannot be submitted unless all the options are ticked. I cannot find a way to validate a checkboxes field so that the submission is accepted so long as I check at least 1 entry but not all of them.
The important thing pointed out by @stephenmeehanuk is that the behavior disappears when the hidden field is removed.
The reason I classify this issue as bug is because the behavior was apparently introduced by: #7180. It must have worked before.
How to reproduce
Create a form with checkboxes containing more than 1 option.
Logs
No response
Environment
EnvironmentApplication Name: StatamicLaravel Version: 11.30.0PHP Version: 8.3.13Composer Version: 2.7.7Environment: localDebug Mode: ENABLEDURL: gaia-hub.testMaintenance Mode: OFFTimezone: UTCLocale: enCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: fileDatabase: mysqlLogs: stack / singleMail: logQueue: syncSession: fileStatamicAddons: 3Sites: 1Stache Watcher: Enabled (auto)Static Caching: DisabledVersion: 5.36.0 PROStatamic Addonsalt-design/alt-seo: 1.2.1jacksleight/statamic-bard-mutator: 3.0.3statamic/eloquent-driver: 4.16.1Statamic Eloquent DriverAsset Containers: fileAssets: fileBlueprints: fileCollection Trees: fileCollections: fileEntries: eloquentForms: fileGlobal Sets: fileGlobal Variables: fileNavigation Trees: fileNavigations: fileRevisions: fileSites: fileTaxonomies: fileTerms: fileTokens: file
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
Continuation to the recent, unanswered discussion: #10984
When adding the validation
requiredto aCheckboxesfield, the form cannot be submitted unless all the options are ticked. I cannot find a way to validate a checkboxes field so that the submission is accepted so long as I check at least 1 entry but not all of them.The important thing pointed out by @stephenmeehanuk is that the behavior disappears when the hidden field is removed.
The reason I classify this issue as bug is because the behavior was apparently introduced by: #7180. It must have worked before.
How to reproduce
Create a form with checkboxes containing more than 1 option.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response