You are viewing limited content. For full access, please sign in.

Question

Question

Feature Request: Keyboard Shortcuts for Forms Action Buttons

asked on August 9, 2023

We have a process where at the first User Task a team changes a single field that dictates which team is assigned at the second User Task. They are accounting people and love their keyboard shortcuts. They are wanting to assign a keyboard shortcut to the action button that is used so after changing the field value they can just hit the shortcut keys and have it submit to help speed up their process.

1 0

Replies

replied on August 9, 2023

To help users know what the shortcut keys are, it would be nice if when they hover over the button that it would show a tooltip telling them.

0 0
replied on August 9, 2023 Show version history

I think this is a cool idea, and would love to see it implemented, especially in the Modern Designer.

In the meantime, we can do this via Javascript in the Classic Designer: 

$(document).ready(function () {
  //Update the title of the submit button - similar to helptext.
  $(".action-btn.Submit").attr('title', 'Press Ctrl+S to Submit.');
});

//Listen for Ctrl+S keypress and click the Submit button when detected.
document.addEventListener('keydown', e => {
  if (e.ctrlKey && e.key === 's') {
    //Prevent the browser Save dialog from opening.
    e.preventDefault();
    //Click the submit button on the form.
    $(".action-btn.Submit").trigger('click');
  }
});

 

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.