How to: Design InfoPath Workflow Forms (ECM)
Applies to: SharePoint Server 2010
There are several basic steps to designing a Microsoft InfoPath 2010 form for use with a Microsoft SharePoint Server 2010 workflow:
Design your form, as you would any other InfoPath 2010 form.
For information about designing InfoPath forms, see the InfoPath 2010 developer documentation.
Data-bind the controls on your form, so that your form can receive data from and send data to SharePoint Server 2010 and the workflow instance.
For information about data-binding workflow association and initiation forms, see How to: Design a Workflow Form to Use Association and Initiation Data in SharePoint Server 2010 (ECM).
For information on data-binding workflow task edit forms, see How to: Design a Workflow Task Form to Use Task Data in SharePoint Server 2010 (ECM).
Add and configure a button that submits your form data to SharePoint Server 2010.
Set the form's security level to Domain.
Publish the form.
To design a form that submits data to SharePoint Server 2010
In InfoPath 2010, drop a button onto your form.
Right-click the button, and then select Button Properties.
In the Button Propertiesdialog box, on the Generaltab, click Rules, and then click Add.
Click Add Action, click Submit Data Connection, and then click Add.
In the Data Connection Wizard, select Create a new connection to and submit data, and then click Next.
Select To the hosting environment, click Next, and then click Finish.
Add another rule: In the Rules dialog box, click Add, and then click Add Action.
In the list of predefined actions, select Close the Form.
For information about configuring data connections for InfoPath forms, see the InfoPath 2010 help.
To create a form that runs in a Web browser and Office system client applications
In InfoPath 2010, in Design Checker, select Compatibility.
In the Forms Options dialog box, with the Compatibility category selected, select Design a form that runs in a Web browser and in InfoPath.
To publish an InfoPath form for a workflow in SharePoint Server 2010
In InfoPath 2010, on the File menu, click Publish.
In the Publishing Wizard, select network location, browse to the location to which you want to publish the forms, and then click Next.
Do not specify an alternative path to the form. Doing so causes an error that prevents you from publishing the form to the server.
Click Next, and then click Finish.