This project illustrates the implementation of grouped checkboxes with mutually exclusive selection constraints. Using a task creation scenario, it allows assignment to either a user, a group, or a role, ensuring selections can only be made within one category at a time.
The main logic here lives between form()
method on our Resource and the create
and edit
functions
CreateTask
and EditTask
files to fit our new format and save relationships manuallyHere's how that looks in our form()
method: