Form Controls

This section outlines the various Process Director controls that can be placed onto Forms. These controls are used to create and enhance Forms in addition to “normal” ASP.NET controls (such as TextBox, DropDownList, etc). The properties can be set in the actual <bpx> control tag, or can be set via normal C# properties.

Form Controls and JavaScript

You can use JavaScript to access the actual HTML controls for BP Logix controls and bind JavaScript events to them. For example, the JavaScript:

CurrentForm.FormControls["YOUR_CONTROL"]

returns the HTML object in JavaScript. Therefore, you could use:

CurrentForm.FormControls["BpTextBox1"].onkeypress = BpTextBox2_Keypressed;

to bind to the onkeypress event.

Note that if you want this event to fire even after a postback (such as a button event), you should place this into a bpUserJavaScript function on your page. This function will be called after the initial page load, AND after each postback. For example, place this on your ASCX page:

function bpUserJavaScript()
{
    CurrentForm.FormControls["ControlName"].onkeypress = BpTextBox2_Keypressed;
}

In addition, you can simply use the native ASP.NET textbox, checkbox, radio button, or dropdown controls and their corresponding server tags, and use standard JavaScript for those controls. Other native ASP.NET controls aren't supported for this functionality.