BPM Data Form OK Button Bypass

To add event handlers to Native controls, you have to add a few lines of code yourself.

  1. Declare a variable of the control type, in the Script section
  2. Get the reference to the native control
  3. Add the handler

  1. Dispose of the event handler
  2. Create the actual handler function

You would have had one issue to overcome, that I don’t know how to do off the top of my head. That would be to stop the form from closing, when those date conditions aren’t met.