web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

IS there a way to override the default button behaviour for a field?

(0) ShareShare
ReportReport
Posted on by 245

Hi

I want to override the default behavoir, when a certain field is selected. Normally when you the press enter the default behavior is to close that window.  I have add it a search field to that window and i want to perform a search when text is enter and enter is press. The what this only when this field is selected. If this field is not select I want to the form to close.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Yes you can, all button BeforeUserChanged event contains a variable called "CancelLogic" just pass "True" to this variable and your VBA code will override original GP code.

    Add this to the original GP button.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans