In this video, you will learn how to use signatures in Centrldesk.
Signature retrieval is required for many use cases, such as signing a document or a contract. In this example, we are asking for the user's signature to use in a document later. So let's start building our application:
Steps:
- First, we go to the page editor by clicking on the Edit Page button.
- Add a button using drag and drop.
- Change the name of the button to "Create signed document", and choose an icon and a color.
- Next, we add an action to the button by clicking the "Add" function on the "On Click" event.
- The Flow Editor opens.
- On the left side, under Libraries, we now drag and drop the "Interaction" element into the center of the Flow Editor.
- The "Interaction" dialog opens.
- Select "Show Signature Dialog" on the left side and confirm with OK.
- On the left side, under App Components, we now drag and drop the "Document" element into the center of the Flow Editor.
- The "Use Document" dialog opens.
- Select "New Document", enter a name for the document, and confirm with OK.
- On the left side, under Libraries, we now drag and drop the "File Processing" element into the center of the Flow Editor.
- The "File Processing" dialog opens.
- Select "Convert to PDF" on the left side and confirm with OK.
- On the left side, under Libraries, we now drag and drop the "File Processing" element into the center of the Flow Editor.
- The "File Processing" dialog opens.
- Select "Download Files" on the left side and confirm with OK.
- Connect the Submitted output of the Show Signature Dialog block to the input of the Document block.
- Connect the output of the Document block to the input of the Convert to PDF block.
- Connect the output of the Convert to PDF block to the input of the Download Files block.
- Select the document and click Edit Document.
- The document editor opens.
- In order to use the signature queried earlier in our flow we need to create a variable.
- On the left side, click New under Variables.
- Enter a name, select "File" for the type, select the Input Checkbox, and confirm with OK.
- Now click the black arrow to use the variable content in your document.
- Then we can resize and align the image and customize our document if needed.
- Close the document editor by clicking Close in the upper left corner.
- Select the Convert to PDF block and give the file a name by selecting Enter Value under Filename on the right side and entering a file name.
- Select the Download Files block and choose the value "Converted PDF" under "Source One" on the right side.
- Close the Flow Editor by clicking close in the upper right corner.
- Close the PageEditor by clicking close in the upper left corner.
- Now we can start using our application.
- Clicking on the "Create signed Document" button opens the "Sign Here" dialog.
- Sign with a tablet pen, finger on a touchpad, or mouse.
- Confirm the dialog with OK.
- The Downloads dialog with the automatically created PDF file is displayed.
- Clicking on the document will open the PDF with the signature.