F
Filament13mo 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
toeknee13mo ago
Toggle is already an action in tables, what are you trying to do for a toggle in a form as an action?
awcodes
awcodes13mo ago
I think they’re after an action that looks like a toggle.
toeknee
toeknee13mo ago
Possibly... but to do what..... in a form that a toggle can't do...
awcodes
awcodes13mo ago
Probably use it in a header outside of a form. I don’t know though. 🙂
Wannes
WannesOP13mo 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 Koch13mo ago
So just an action with an if-else construct?!
Wannes
WannesOP13mo ago
This but as a toggle
No description
Dennis Koch
Dennis Koch13mo ago
Okay, so you want a Toggle but positioned with the Header Actions. You could create a Custom Action and override the view
Want results from more Discord servers?
Add your server