6

As a user I want to type something inside a text field and then press the enter button on the keyboard to trigger some action (e.g. start the search). Right now I'm not able to implement this behaviour inside a custom form in D365 F&O.


To do that, there is the standard task method on all forms, which can be adjusted to trigger some action by pressing specific keys on the keyboard (e.g. enter). For my custom form this task method is only triggered by ESC key and not by any other. So it's not working.


I already placed this question in a MS ticket and the answer was following:

Question: Why is the task method not working on some forms with specific form pattern, but on other forms it is working.

Microsoft: If there is a default action modeled for the form, then that behavior is invoked. Also, majority of dialogs have behavior were enter is used invoke a “click” on the default button.


Expectation:

I need a possibility to trigger a function with the enter key. E.g. I have a text field where the user need to search for anything. Then he would likely just press enter and expect the search to be started (The function to be executed). But right now the user needs to switch to the mouse and click on a button which is next to the text field to start the search. This is not a good user experience.


To achieve this expectation the usage of enter key on the forms need to be redesigned (Either default action, task method or any other solution).

Category: Development
STATUS DETAILS
New