How to change the resulting json for Checkbox List?
Currently I'm trying to use the checkbox list field
https://filamentphp.com/docs/3.x/forms/fields/checkbox-list
However it save the resulting json as something like this, notice item-2 is not inside the array as it is not checked
But i want it to save as this kind of json instead
How should I do it? for both saving and correct retrieval. Thank you
1 Reply
You'll need to custom cast it? If empty set as false.