Enable form submission
You can create a data connection 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.
- 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.
- In the Submitting Forms dialog box, click Enable submit commands and buttons.
- 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.
- Do one of the following:
Allow 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.
- In the Submit to list, click E-mail,Web service, or SharePoint form library.
- 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.
Allow forms to be submitted to a Web server (HTTP)
- In the Submit to list, click Web server (HTTP).
- In the URL box, type the address where you want the forms submitted.
Allow forms to be submitted using script or managed code
- In the Submit to list, click Custom submit using form code.
- Select the Edit Form Code check box, and then click OK.
- In the code editor, type the code that you want to run when a user clicks Submit on the File menu.
Allow forms to be submitted using rules
- In the Submit to list, click Custom submit using rules.
- Click Rules.
- In the Rules for Submitting Forms dialog box, click Add.
- In the Name box in the Rule dialog box, type a name for the rule.
- 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.
- In the Rule dialog box, click Add Action.
- In the Action list in the Action dialog box, click Submit using a data connection.
- Do one of the following:
- If you have already added a data connection, click it in the Data connection list, and then click OK.
- 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.
- 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.
- In the Submit to list, click Database.
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