Automatically close a form by using a rule

Microsoft Office InfoPath 2003

Show All Show All

Automatically close a form by using a rule

When you design a form, you can create a rule that automatically closes a form when the user clicks a button.

ShowTip

  1. In design mode, double-click the button you want to create the rule for.
  2. In the Action box on the General tab, click Rules and Custom Code, and then click Rules.
  3. In the Rules dialog box, click Add.
  4. In the Name box in the Rule dialog box, type a name for the rule.
  5. To specify when the rule should run, click Set Condition, and then enter the condition. The rule will run when the button in step one is clicked and the condition specified in this step is met.
  6. Click Add Action.
  7. In the Action box in the Action dialog box, click Close the form.
  8. If you want to prompt the user to save their changes before the form closes, select the If changes have not been saved, prompt the user to save check box, and then click OK.
  9. If you want to prevent any rules from running after this rule (for the current event), select the Stop processing rules when this rule finishes check box in the Rule dialog box.

Note  The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more