F
Filament9mo ago
Wannes

Toggle as Action

Hi, is it possible to have an action that is basically a toggle? So this: https://filamentphp.com/docs/3.x/forms/fields/toggle but than as an Action Kr, Wannes
8 Replies
toeknee
toeknee9mo ago
Toggle is already an action in tables, what are you trying to do for a toggle in a form as an action?
awcodes
awcodes9mo ago
I think they’re after an action that looks like a toggle.
toeknee
toeknee9mo ago
Possibly... but to do what..... in a form that a toggle can't do...
awcodes
awcodes9mo ago
Probably use it in a header outside of a form. I don’t know though. 🙂
Wannes
Wannes9mo ago
Button A has to have different behavior when the toggle is enabled. So a toggle that looks like an action indeed.
Dennis Koch
Dennis Koch9mo ago
So just an action with an if-else construct?!
Wannes
Wannes9mo ago
This but as a toggle
No description
Dennis Koch
Dennis Koch9mo ago
Okay, so you want a Toggle but positioned with the Header Actions. You could create a Custom Action and override the view