LiveCode for FM ManualCustom ComponentsHow Do I collect user signatures?

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

  1. A container field to hold the drawn signature
  2. A button to create the signature. In button setup name it and choose `Single Step` as its action

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.

Testing

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.