Add an option to Checkboxlist via an Action
I'm trying to recreate similar behaviour to the
->createOptionForm()
of the Form\Select component https://filamentphp.com/docs/3.x/forms/fields/select#creating-a-new-option-in-a-modal but on a CheckboxList.
I was hoping I could utilise either the ->helpertext()
or ->hint()
methods and trigger an Action.
It renders ok - but the Action doesn't trigger the modal/form - is this possible or do I need top change my approach?
Solution:Jump to solution
Im not sure that
->helperText()
accepts an action by default. But maybe you could use ->hintAction()
instead? 🤔3 Replies