Add or change conditional formatting
You can use conditional formatting to change the appearance of a control based on values users enter into your 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
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.
- Select the formatting you want to apply for your condition or conditions, and then click OK.
- If you have 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, Office InfoPath 2003 applies only the formatting of the first true condition.
- In design mode, select the control whose conditional formatting you want to change, and then click Conditional Formatting on the Format menu.
- In the Conditional Formatting dialog box, select the condition you want to change, and then click Modify.
- In the
If this condition is true
boxes, modify
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.
- Select any new formatting you want to apply for your condition or conditions, and then click OK.
- If you have 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, Office InfoPath 2003 applies only the formatting of the first true condition.