Setting Up the Required Flag of a Text Control

You can set up the required flag of a text control at runtime based on the value of a checkbox control.

Procedure

  1. Add a checkbox (Checkbox3) and a text control (Text Control3) into a vertical pane with the form.
  2. Go to the General properties for the checkbox control.

    Create a binding for the Value attribute of the checkbox and set it to the Required property of the text control. The direction of this binding is from the check box Value to the Required property of the text control.

  3. When you load the form, Text Control3 is marked as Not Required. If you select the checkbox control, Text Control3 is marked as Required on the form.