Electronic Signature When Having A Warning On Form


Hi Guys,

I am trying to find a way to display the warning message that I have on the form before the electronic signature pops up.

I have Electronic signature set on a form and at the same time there is a code that will show a warning on the click of OK on that form. Now what is happening is that, when I hit OK, I see the Electronic signature screen and then I hit OK on this and then I see by main form with warning on that and then I again hot OK on the form and that brings the Electronic signature again and after the 2nd hit of OK on this .. the application proceeds further.

I want some ideas that can avoid popping up of the Electronic signature before the warning. The warning should come up. I hit OK and then again OK as I have a warning and then I want the Electronic Signature to pop up.

Please help :(