Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Avoid field break when pressing enter in a field on a page

(0) ShareShare
ReportReport
Posted on by 115

Hello community first of all thanks for taking the time to read my question that I have, And share your knowledge with me

I comment on my situation


I did a development in business central this contains a pageextension with a new field in which a barcode is scanned and the value I put in this field and I run all my development in the onvalidate trigger  but when scanning the barcode it executes an enter to start the trigger code onvalidate

and the next field of the page is passed, is it possible to make it stay in the same field when doing an enter?

Since this way I would avoid clicking on the field before scanning many products

Thanks again for your time and knowledge. I am waiting for any response.


good day

  • Yael Suarez Profile Picture
    Yael Suarez 115 on at
    RE: Avoid field break when pressing enter in a field on a page

    When you talk about the other fields you refer to all the fields in the header of the page

    I would have to make a page extension with a modify to all the fields that are seen on the page?

  • Suggested answer
    JAngle Profile Picture
    JAngle 63 on at
    RE: Avoid field break when pressing enter in a field on a page

    My bad. That property would have to be false on the other fields too. That way the cursor can’t move from the position you sit it in

  • Yael Suarez Profile Picture
    Yael Suarez 115 on at
    RE: Avoid field break when pressing enter in a field on a page

    Thanks for your time look I did the following

    Page-image.PNG

    But at the time of scanning, it continues to go to the field below, it does not stay in the field that I indicate.

    page-image-2.PNG

    Thank you for your time and knowledge and I look forward to your response.

  • Suggested answer
    JAngle Profile Picture
    JAngle 63 on at
    RE: Avoid field break when pressing enter in a field on a page

    I developed a similar page and I used this to stop the cursor from moving around and hitting enter: docs.microsoft.com/.../devenv-quickentry-property

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans