Thanks Patkick,
This seemingly trivial change to my form has turned into quite an ordeal. I wrote this message on a previous post in the NewBee forum.
"I have a form with 2 data connections, email and sql database. On submitting the form using the submit button on the toolbar it works just fine. I use 'custom action rules' in the submit options. Also a pop up message is displayed (using C# managed code that is triggered when one of the required fields on the form is filled out), once the user clicks the submit button, the pop up message displays (unless it already displayed) and then both data connections then submit just fine. That is the flow and what I want.
My problem is now I must add a submit button to the form itself while maintaining the same flow as above. The submit button on the form works just fine when submitting the email and sql data sources using the 'rules and custom code' option. But when I try to display the pop up message before submitting the form, I have to click the submit button twice, once to generate the pop up message and once to submit the data connections. Also the "form submitted successfully" message is not being displayed when the form is submitted to the sql database.
The control flow of the form behaves differently when using the submit button on the toolbar versus using a submit button on the form. "
So based on the limitations from the above, I decided to 1) display the message, 2) send the email and 3) update the database all in the FormEvents_Submit event handler using managed code. Both 1 and 2 work but not 3. And that is why I posted in this forum.
Thanks