Add conditional formatting

Microsoft Office InfoPath 2003

Show All Show All

Add conditional formatting

You can use conditional formatting to change the appearance of a control based on values users enter into your form.

  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 If this condition is true boxes, enter the condition.

    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.

  4. To add additional conditions, click And, and then in the rightmost box under If this condition is true, do one of the following:
    • To apply the formatting only when both conditions are true, click and.
    • To apply the formatting when one or both of the conditions are true, click or.
  5. Under Then apply this formatting, select the formatting you want to apply for your conditions, and then click OK.
  6. If you have specified multiple conditional formats for a control and want to change the order in which they are evaluated, select a conditional format in the Conditional Formatting dialog box, and then click Move Up or Move Down.

    Note  If more than one specified condition is true, InfoPath applies only the formatting of the first condition in the list that is true.