Submit Event on browser enabled form not firing after a Textbox Changed event - InfoPath Dev
in

InfoPath Dev

Submit Event on browser enabled form not firing after a Textbox Changed event

Last post 08-27-2010 01:48 PM by galexander. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-27-2010 01:48 PM

    Submit Event on browser enabled form not firing after a Textbox Changed event

    I have an Infopath 2007 browser enabled form. I have the following event handlers for the Form Submit button and a Textbox named ContractAmount.

     EventManager.FormEvents.Submit += new SubmitEventHandler(FormEvents_Submit);

     EventManager.XmlEvents["/my:myFields/my:ContractAmount"].Changed += new XmlChangedEventHandler(ContractAmount_Changed);

    Both events fire and work OK. Where I am having a problem is as follows.

    The User changes the ContractAmount value, does not leave the field (i.e. does not tab out) and then clicks the Submit button.

    The ContractAmount Changed event fires and associated code is executed. But the FormEvents_Submit is not executed, EVEN THOUGH THE SUBMIT BUTTON WAS CLICKED. When you THEN click the Submit button then FormEvents_Submit is executed.

    I want both events to occur one after the other. It seems like the first click of the Submit button allows the ContrafctAmount change to be recognized but not the submit button click.

    Any help/suggestions will be greatly appreciated.

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.