ServiceDesk

 View Only
  • 1.  ServiceDesk Workflow mapping of Enter key on Form

    Posted May 11, 2015 03:46 PM

    We have a customized form we use for reassigning subtasks. We are having issues with someone typing in the name of the user/group to reassign, then hitting enter; which, triggers the Done button. I've seen instructions on mapping the enter key to a certain action, but is there a way to disable the enter key from triggering the Done action?

     

    Thanks!

     

    Steven B.



  • 2.  RE: ServiceDesk Workflow mapping of Enter key on Form
    Best Answer

    Posted May 11, 2015 04:00 PM

    Here's the post about clicking a button when pressing the Enter key:

    http://www.symantec.com/connect/forums/hitting-enter-workflow

    Here's the content of the post that directly addresses that concept:

    Give the button a name by Edit Component -> Tab: Functionality -> Check Specify Control Id -> Type Name eg. 'btnEnter'
    In the textbox component Edit Component -> Tab: Functionality -> Custom Events:
    Click Add -> AttributesKeyValuePair
    Event: onKeyPress
    Event Handler: if (event.keyCode == 13){ event.returnValue=false;event.cancel = true;btnEnter.click();}

    Now to adapt that to what you want, which sounds like "ensure nothing happens when a user presses enter when the focus is on a specific element", change the code to this:

    if (event.keyCode == 13){ 
    return false;
    } 

    Let me know if that helps.



  • 3.  RE: ServiceDesk Workflow mapping of Enter key on Form

    Posted May 11, 2015 04:07 PM

    Hi Steven,

    When you press Enter in some webform in Workflow you are triggering the next button in tabulation. By default there is no way to disable that. 

    What you can do is asking for confirmation, configurin the button "Done" like below:

    Capture_2.PNG

    Does this help you?

    Regards.



  • 4.  RE: ServiceDesk Workflow mapping of Enter key on Form

    Posted May 13, 2015 04:32 PM

    I don't like the idea of the confirmation button. It's better than sending the ticket to a blank queue, but still wanted to do away with the enter. I walked through the post Africo added, and this worked!

     

    I didn't disable the enter from the Done key, but I used the article to map the enter key to both User and Group search fields. I tried this previously looking at another article, but must have made an error somewhere along the way.

     

    Thanks for all the help!

     

    Steven B.