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.
- In design mode, select the control to which you want to add conditional formatting, and then click Conditional Formatting on the Format menu.
- In the Conditional Formatting dialog box, click Add.
- In the first box under If this condition is true, click Select a field or group.
- 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.
- Enter the rest of the condition.
- Select the formatting you want to apply when the condition is true.