This page will guide you through the creation of a form that can be used by any HR department for employee Leave Approval requests. When this form is completed you can easily incorporate it into a frevvo workflow.
The Leave Approval form you are going to create contains two sections: one to collect information about the employee requesting the Leave and a second section to collect details about the leave and the employee's signature. The form will contain one business rule to show/hide a verification field if the employee selects the sick option as the type of leave.
Logon to your frevvo tenant as the designer.
Click the Add icon and select Create a New Form.
When prompted, change the Project Name to "My Company HR." (If you already have Projects in your list, you may choose whether to create a new project or add to an existing project.)
You will be taken directly to the Form Designer. Change the form name to "Leave Approval Form" by clicking the pencil icon next to the default form name.
Drag a Message control from the palette and drop it onto the canvas. Look for the green arrows to help you drop the control in the desired place on the form. As you add more controls, you will see double green arrows, up, down, or side arrows to help you place controls on the canvas.
Change the Message text to "Leave Approval." Change the control name to "LeaveApproval" (no spaces.) Change the Message Type to None by selecting it from the dropdown.
Click the Style tab on the Properties pane for the Message control. Type blue for the Background color, white for the Label Color. Select large for the Label Size. Check the Bold and Center checkboxes, if desired.
Drag a Section control from the palette and drop it below the Message control.
Click on the section label and change it to Employee Information. Notice that frevvo automatically provides the control name "EmployeeInformation." You can change this if desired.
Drag a Text control from the palette and drop it into the Section control when you see the green double drop arrows.
Click on the properties section for this text control and in the Settings Tab change the label to "First Name." Click on the Styles tab. Change the width of the control by selecting 6 columns on the grid.
Check the Required property on the Settings tab for the First Name control.
Drag a second text control from the palette over the first name and drop it when you see the right green arrow. This should position the second text control to the right of the first one.
Click on the second text control label and change the label to Last Name. Check the Required property.
Drag a third text control from the palette over the Last Name control. Drop it when you see the right green arrow.
Click on the third text control label and change the label to Manager Id. Check the Required property.
Drag an Email control to the right of the Manager Id control. Drop it when you see the green right arrow. Using the Email takes advantage of frevvo built-in validation.
Click on the Email control label and change the label to Email. Check the Required property on the Settings tab.
Click the Save icon to save work you have done so far.
Continue with the instructions to add the Leave Request Section to the form.
This section is filled in by the Employee who is requesting the leave.
Drag and drop a Section control below the Employee Information section. Look for the green down arrow. Name it Leave Request.
Drag a Date control from the palette and drop it into the Leave Request section. Check the Required property. Change the label to Start Date. Change the width to 6 columns.
Drag a Number control from the palette and drop it into the Leave Request section to the right of Start Date. Change the label to Number of Days. Change the width to 6 columns. Check the Required property.
Drag a Radio control from the palette and drop it under the Start Date field.
Change the control label to Type of Leave, delete the default options, and add these choices for the options: Annual=Annual Leave, Floating Holiday=Floating Holiday, Sick=Sick Leave, Compensatory=Compensatory Leave, Other=Other Leave
Check the comment box and specify 1 as the number of rows. Check the Required property.
Click the Style tab and add a value of 30% to the Item Width. This changes the layout of the options from vertical to horizontal.
Create the Certification question that will appear when the employee checks the Sick Leave option by dragging a Checkbox control from the palette and dropping it below the Type of Leave control.
Change the label to Certification and the name to Certification. Add a single option: "True=I certify that the above listed leave was entirely due to personal illness." Do not check the Required property for this control.
Uncheck the Visible checkbox on the Certification field. This field is not visible on the form unless the Employee selects Sick Leave as the Type of Leave. This will be handled by a rule discussed later.
Check the "Hide Label" button. The label will be hidden and the user will see only the single option.
Drag a Textarea control from the palette and drop it below the Certification control inside the Leave Request section when you see the green down arrow.
Change the label to Comments. Do not check the Required property for this control.
Select the section by clicking on its header.
In the properties panel, select the Security Tab.
You can set up this as a Signed Section. Two types of signatures are available from the Signature drop down: Text/Signature Image or Wet Signature. Here is information about the difference between the signature types. Select Text/Signature Image from the dropdown.
Check the Must Sign checkbox to require the signature and verify that the Lock checkbox is checked to prevent tampering with the signed data .
Notice that a "Sign this section" button and a pencil icon with a line appear at the bottom right and left of the section when the signature type is selected.
The Employee will have to sign the section before it can be submitted.
Save the work you have done so far.
We will add one business rule to show/hide the Certification control if the employee checks the Sick option in the Type of Leave dropdown. Follow these steps:
If you prefer step-by-step instructions to create a Leave Approval workflow, click here.