Skip to Content
0
Former Member
Oct 18, 2005 at 05:10 PM

Event firing twice for button click

593 Views

I have an add-on that puts a new button on the Item Master form. Clicking that item brings up a new data entry form. Everything works well except that it appears the click event is firing twice. I have this code to capture the click for the custom button:

If pVal.Before_Action = False And pVal.ItemUID = "btnMxSet" Then

..load my new form

End If

The problem is that the form tries to load twice because the event is fired twice. I added an SBO message box before loading the form and it only fires off once. I suppose I can check to see if the form is loaded, but I want to see why the event fires twice.

Any ideas? If not, what's the best way to check to see if a given form is loaded?

The people on this forum are very helpful!

Thanks.