Add conditional formatting based on another control

Microsoft Office InfoPath

Show All Show All

Add conditional formatting based on another control

You can add conditional formatting to a control that is based on the value of another control on the form.

Note  The following controls can have conditional formatting: text boxes, rich text boxes, sections, optional sections, repeating sections, repeating tables, and expression boxes.

  1. In design mode, select the control to which you want to add conditional formatting, and then click Conditional Formatting on the Format menu.
  2. In the Conditional Formatting dialog box, click Add.
  3. In the first box under If this condition is true, click Select a field or group.
  4. In the Select a Field or Group dialog box, select the field or group whose value you want to evaluate, and then click OK.

    Note  Microsoft Office InfoPath 2003 verifies a condition by checking the value of the field that is bound to the control, not the control itself.

  5. Enter the rest of the condition.
  6. Select the formatting you want to apply when the condition is true.