Hotkey on Custom Button

Is it possible to put a hotkey onto a button you create yourself in a form?

The Hotkeys “keybinding” under Toolbar only seems to let us select the built-in buttons like Update, Delete etc.

I had to create a custom button to open one form from another form, and I need to get it so the user doesn’t have to reach for the mouse every time.

You can replace the update button with you custom button and put your code in onBeforeUpdate

If you need the update button you can create a custom one for your need. At the end of this link you will find how to create a custom PHP button

Thanks jlboutin60 but my question is how to add a Hotkey to the custom button. In other words, a shortcut key that invokes the custom button.

If you use the update button, you will be able to add an Hotkey to it

Yes I see what you mean. That’s a good idea, I will give it a try.

Thanks again.

@jlboutin60 that worked - for my case I had to use the Insert button instead, and used the BeforeInsert event to redirect to my other form. Thanks.

Because it’s in a detail form iframe, the shortcut key only works if you first put your cursor into the subform, but it then functions just fine.