How to save hintAction form on keypress enter?
Hello,
I have a booking form which has all the inputs disabled on EditPage, we have added an hintAction form to open a modal and make the changes to that input and it works fine.
My client is now asking to add a functionality to press enter and save that form.
Please let me know if there is a Filamentphp way to do it? or Alpine JS way?
I have attached TextInput code for one of my fields.
Thank you
5 Replies
bump
bump
What about key bindings on the action?
https://filamentphp.com/docs/3.x/actions/trigger-button#registering-keybindings
@toeknee the key bindings with action only opens that hintaction modal, I actually want to trigger the save button.
Save Button is an action, so extend it and bind a key to it.
@toeknee I will try it now, thank you so much.