Page 1 of 1
Image.CaptureSignature Function
Posted: March 15th, 2022, 10:33 am
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.
Re: Image.CaptureSignature Function
Posted: March 15th, 2022, 12:09 pm
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.
Re: Image.CaptureSignature Function
Posted: March 16th, 2022, 4:22 am
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?
Re: Image.CaptureSignature Function
Posted: March 16th, 2022, 2:40 pm
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));
Re: Image.CaptureSignature Function
Posted: March 17th, 2022, 9:28 am
by Nikola
Thanks a lot.