Enable form submission

You can create a data connection (data connection: The connection between an InfoPath form and an external data source, such as a database, Web service, SharePoint library, or XML file. Data connections are used to query and submit data.) in your Microsoft Office InfoPath 2003 form that allows users to submit a completed form to a Web service or Microsoft Windows SharePoint Services form library, or submit their form as an attachment in an e-mail message. In addition, you can design a form that is based on a Web service or database such that users can submit the completed form.

 Note    In order for users to submit their form as an e-mail message, they must have Microsoft Office Outlook 2003 installed on their computer.

  1. In design mode, do one of the following:
    • To allow users to submit the form by clicking a button on the form, double-click the button you want to use, and then in the Action list in the Button Properties dialog box, click Submit.
    • To enable submit without adding a button to the form, click Submitting Forms on the Tools menu.
  2. In the Submitting Forms dialog box, click Enable submit commands and buttons.
  3. If you want users to submit data using the selected data connection, select the Enable the Submit menu item on the File menu check box.

 Note   If you have more than one type of submit functionality in your form, only one can use the Submit command on the File menu.

  1. Do one of the following:

ShowAllow forms to be submitted to a database

  • In the Submit to list, click Database.

 Note   You can only enable this option for forms that are designed based on a database.

ShowAllow forms to be submitted through an e-mail message, or to a Web service or Windows SharePoint Services form library

  1. In the Submit to list, click E-mail,Web service, or SharePoint form library.
  2. Do one of the following:
    • If you've already set up a data connection to submit the form through an e-mail message, or to a Web service or Windows SharePoint Services form library, click the appropriate data connection in the Choose a data connection for submit box.
    • To add a new data connection, click Add, and then follow the steps in the Data Connection Wizard. For detailed instructions on how to use the wizard, see the appropriate topic for connecting an existing form to a Web service or Microsoft Windows SharePoint Services site, or enabling submit using an e-mail message.

ShowAllow forms to be submitted to a Web server (HTTP)

  1. In the Submit to list, click Web server (HTTP).
  2. In the URL box, type the address where you want the forms submitted.

ShowAllow forms to be submitted using script or managed code

  1. In the Submit to list, click Custom submit using form code.
  2. Select the Edit Form Code check box, and then click OK.
  3. In the code editor, type the code that you want to run when a user clicks Submit on the File menu.

ShowAllow forms to be submitted using rules

  1. In the Submit to list, click Custom submit using rules.
  2. Click Rules.
  3. In the Rules for Submitting Forms 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 in the Condition dialog box. The rule will run when the event specified in step one occurs and the condition specified in this step is met.
  6. In the Rule dialog box, click Add Action.
  7. In the Action list in the Action dialog box, click Submit using a data connection.
  8. Do one of the following:
  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.

 
 
Applies to:
InfoPath 2003