How Do I collect user signatures?
In this lesson we will use the LCSignature function to create an image of a user signature and display it in a field.
The LCSignature function
The LCSignature function takes no parameters. It presents a dialog for the user to draw a signature.
Solution Layout
In your solution create
- A container field to hold the drawn signature
- A button to create the signature. In button setup name it and choose `Single Step` as its action
![](https://media.screensteps.com/image_assets/assets/000/811/975/original/465bb217-8fe1-4b7d-9977-551081aa431c.png)
Sign button script
The `Sign` button script is just a single script step that calls the `LCSignature` function and sets the value of the container field to the result.
![](https://media.screensteps.com/image_assets/assets/000/811/977/original/7eeb4262-a6ec-4b3b-9e80-7b285e106802.png)
Testing
![](https://media.screensteps.com/image_assets/assets/000/811/979/original/1a03ee04-c32b-4476-baca-3743dfd0ef83.png)
Exit layout mode and create a record then click the `Sign` button and you will see a a dialog for drawing a signature. Draw a signature and click `OK`.
0 Comments
Add your comment