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
mohdaftab
mohdaftabOP3w ago
bump bump
mohdaftab
mohdaftabOP3w ago
@toeknee the key bindings with action only opens that hintaction modal, I actually want to trigger the save button.
toeknee
toeknee3w ago
Save Button is an action, so extend it and bind a key to it.
mohdaftab
mohdaftabOP3w ago
@toeknee I will try it now, thank you so much.

Did you find this page helpful?