Image.CaptureSignature Function

Discussions about CSEntry
Post Reply
Nikola
Posts: 27
Joined: December 24th, 2021, 4:30 am

Image.CaptureSignature Function

Post by Nikola »

I tried to use Image.CaptureSignature Function, but it is not function well.
It is just working one time after loading the deploy file.

What should I do to solve this problem?

Thank you in advance.
You do not have the required permissions to view the files attached to this post.
aaronw
Posts: 571
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Image.CaptureSignature Function

Post by aaronw »

The application checks whether "Consent Signatures.png" exists. If it does, then the signature prompt is skipped. Use the id items as part of the signature file name, so it is unique for each case. For example, "Consent Signature 00001." Then you will prompt and save a signature exactly once for each case.
Nikola
Posts: 27
Joined: December 24th, 2021, 4:30 am

Re: Image.CaptureSignature Function

Post by Nikola »

Thank you aaronw,

It is working well now thank you.
However, the "Signature of interviewer" folder didn't make it after the ending of the survey in the deploy file. What am I missing?
You do not have the required permissions to view the files attached to this post.
aaronw
Posts: 571
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Image.CaptureSignature Function

Post by aaronw »

The signature is saved to a folder named "Consent Signatures" at the same level as the Survey application. If you want to place it a level up try:
string consent_filename = path.concat("../Consent Signatures", key(SURVEY_DICT) + maketext("%v.png", SURVEY_ID));
Nikola
Posts: 27
Joined: December 24th, 2021, 4:30 am

Re: Image.CaptureSignature Function

Post by Nikola »

Thanks a lot.
Post Reply