Add conditional formatting
You can use conditional formatting to change the appearance of a control based on values users enter into your form.
- 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
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.
- 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.
- Under Then apply this formatting, select the formatting you want to apply for your conditions, and then click OK.
- 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.