You are viewing limited content. For full access, please sign in.

Question

Question

Can I auto fill the signature?

asked on January 24, 2018

Hi all,

 

Can I auto fill the signature's field with a picture?

Actually, this is what I have.

 

And this is what I want

0 0

Answer

SELECTED ANSWER
replied on January 24, 2018

Hi,

Each user can set an individual signature and it can be shown by default when a signature is required. When building the form, there's a radio button enabling this:

To set up the signature, go to the account name on the top right, then account:

 

And whenever asked for a signature, it will show up without being prompted like this:

Hope this helps!

1 0

Replies

replied on January 24, 2018

Hi there,

What about auto-filling a signature using a base64 value that is looked up from the database?

1 0
replied on January 25, 2018

Hi Ege Ersoz,

 

This is a good idea. Thank  you very much.

Regards

0 0
replied on March 7, 2018

Hi Ege,

 

Could you please give me the table's name?

 

thanks in advance

0 0
replied on March 7, 2018

Ok I found how to do. Thank you anyway.

 

First get your picture to 500x150px in png with alpha.

 

Then convert it to Base64 using this website

https://www.base64-image.de/

 

Clic on "</> show code" to get the code

 

Copy the code "For use in <img> elements:"

 

Next, open your Microsoft SQL Server Management Studio and go to your Database Form (mine is called LFForm).

 

 

Go to "dbo.cf_users" to get your "user_id"

 

 

Then, go to "dbo.cf_user_profile" to edit it.

 

Find your "user_id"

 

 

Change the "data_url" and "thumbnail_data_url" ; paste the previous code generated by the website https://www.base64-image.de/

 

 

Save and close MSSQL Management Studio.

 

Check your signature on LFForm

 

2 0
replied on November 14, 2018

@Olivier this is awesome, thank you!

I used your approach and created a Laserfiche Form to allow users to modify their own with the upload feature (tested on development server).

The uploaded signature is saved to the Repository, Workflow exports it using the SDK script, converts the image content to Base64 then updates the database using the SID of the form submitter.

Great post. This should really become a new feature though!

2 0
replied on November 14, 2018

Nice Job!

I didn't think to make a form for that.

I scan myself the signatures for each user at my office XD

 

Could you please share your sdk? Or better, your workflow?

0 0
replied on January 30, 2019

Hey, sorry for the late reply I missed this one!

I've attached the Workflow. You'll need to change the .TXT extension to .WFX though as it won't let me upload the Workflow file.

Just change the references for the export path in the SDK script, the SQL datasources and search activity to find the attachment saved from Forms. My VB.NET isn't great but it I hope it helps (...and makes sense!)

Dom

0 0
replied on January 24, 2018 Show version history

Hi Karina,

 

thank you for your return.

 

It's working

 

Is it possible to upload a picture (a scan for exemple) ?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.