Sunday, March 25, 2012

SharePoint 2010 State Machine Workflows with Custom Task Forms (InfoPath) using Visual Studio 2010 (Part 2)

How to create Infopath Form for HR Manager Approve
Open Infopath Form Designer
 File | New | Blank Form | Design Form

Design UI as follows:

Right click field1 | change Field name is Status

Right click field2 | change Field name is Comment

Right click to button | Button Properties… | Change label: Submit

UI after is changed as follows

Click to button Submit | On ribbon choose Add Rule | When this button is clicked | Submit data

At rule Details Box | Add

At Data Connection Wizard Choose | Create a new connection to: | Submit data then click Next

Choose radio “To the hosting environment , …” then click Next (Image 10)

Click Finish 

Click OK

Rename for this rule is Submit Rule

Continue, click to button Submit | On ribbon | Add Rule | When this button  is clicked | Close Form

Click OK

Rename for this rule is Close Rule

File | click to Form Options

Remember check to “Sign this form template” and click Create Certificate …  if have not any certificate

File | Publish | Network Location

Save this template (Image 20)

Continue , click Browse… to publish this template

Save this publish template

Click Next

You see have path in Text Box as follows

Clear all text in textbox then click next

Click OK when Warning

Click Publish

Click Close

File | Form Template Properties

Copy ID of Form as follows:

Save this ID to notePad


Post a Comment