concept custom initiation form in category sharePoint
appears as: custom initiation form

This is an excerpt from Manning's book SharePoint 2010 Workflows in Action.
Table 9.7. Building a custom initiation form
Action
Steps
Result
Add the form into the project, and deploy it to Forms Server. NOTE: All forms in Forms Server must be marked as Workflow Enabled (Yes) to be viable in the workflow.
- In the Visual Studio project, right-click Workflowl and choose Add Existing Item.
- Browse to and select the published version of the initiation form.
- After the file is added, right-click the file, choose Properties, and change the Deployment Type property to ElementFile.
- Build and deploy the project. This will deploy the form into Forms Server.
Copy Form’s unique ID.
- Navigate into Manage Form Templates within Central Administration under InfoPath Forms Services.
- Find the initiation form that was deployed.
- Click on the form and choose View Properties and copy the Form ID (URN). You will need this URN a bit later.
You’ll need the form’s unique ID in your clip board for the next action. Back in the workflow, edit the Elements.xml file.
- In the Workflow element, add an InstantiationUrl attribute and set it to _layouts/IniWrkflIP.aspx.
- Inside the MetaData element, add an Instantiation_FormURN element.
- Within the Instantiation_FormURN element, paste in the URN from the previous action.
After you paste in the URN from the initiation form that was deployed into Forms Server, you can build and deploy your project. If you go back into a list where the workflow is installed and you start a workflow on an item in that list, you should see your custom initiation form (figure 9.12).
