In SharePoint Workflows, Initiation Forms are used to provide some additional information into the workflow for whom it is triggered or who starts it. Basically, the initiation forms are used to interact with the user, for example - if we want to take some data from the user before the workflow is triggered, this will be done by Initiation Forms. At first, the input will be taken and then the workflow will be triggered. This is the scenario of initiation form.
On the other hand, Association Forms are also workflow forms which are used to take the information before associating with the list and they are usually used for reusable workflows.
Let’s take an example of initiation form workflow.
Scenario
We are making a workflow named “Reimbursement” in which a user applies for a reimbursement of some amount against his/her expenditure but if the manager wants to allow it only up to certain amount, then we can use initiation parameter. Let’s say the Max Limit for reimbursement amount will be up to 5000. So, we will set this parameter and make workflow to provide a solution.
Step 1st
Make a “Custom List”, let’s say “Reimburse”, which contains the following columns - Title, Description, & Amount.
Go to SharePoint Designer and select the List Workflow; and after that, select your List “Reimburse”.
Once you select your list, a workflow window appears named as “Reimbursement”. Select SharePoint 2010 Workflows.
Now, click on Reimbursement that expands some options on the top of the page.
Now, select Initiation Form parameters in which you can set parameters or you can say amount limit.
For setting the Parameters, click on "Add" button and after that, name it as Reimburse Max Amount and make information type a number.
Set the default value, as I set the Reimbursement amount max limit is 5000. Your parameters are done. Now, go to your Workflow.
Choose the condition “If any Value equals value “ click on value. & set ‘Data source’ to Current Item and ‘field from source’ to Amount and select.
Select “is greater than “instead of equal & select another value option." Then choose Workflow Variable and parameters and Parameter : Reimburse Max Amount under Field from source.
“Set Field to value” Action, in which select Status is in fields & type “Not Approve” in Value.
Same as above condition, the below will be the same but use “less than or equal to” instead of previous and set status to Approve which is shown in fig above
Now Publish the workflow. It will take a couple of minutes to publish.
Now, check your workflow add a new Item in the list , if it is more than Reimbursement max amount then the request has been Rejected.
Now, view the list item and go in workflow to start the workflow
Now, check if your request is Rejected or Approved.