Why can't you set the state of Toggle Buttons?
This does not work, tried several different ways to set the toggle button value
3 Replies
Solution
Is it on an Edit page?
->default()
is for creation only.See the docs: https://filamentphp.com/docs/3.x/forms/fields/getting-started#setting-a-default-value
Note that these defaults are only used when the form is loaded without existing data. Inside panel resources this only works on Create Pages, as Edit Pages will always fill the data from the model.
Ahh oke, yes it is. And also in a repeater