Page 1 of 1

Populate the content of signature pad thru javascript

Posted: Thu Dec 11, 2014 6:46 pm
by swushw
Hi Scott

How do I populate the content of signature pad through javascript?

Thanks.

Re: Populate the content of signature pad thru javascript

Posted: Thu Dec 11, 2014 7:03 pm
by Scott Klement
hi Shirley,

Nobody has asked this before, and I have never had a reason to try it, but you should be able to set the properties of any widget via the applyProperty() API. You could use this to set things for the signature pad. Most widgets require you to set the 'field type' to force them to re-render, so if applying other properties like 'value' doesn't help, then you might try following that up by applying the 'field type' property and just set it to 'signature pad' (which it already is -- but this should force it to re-render.)

I might be able to provide more useful advice if I understood what you were trying to accomplish... why do you want to control a signature pad with JavaScript?

Re: Populate the content of signature pad thru javascript

Posted: Fri Dec 12, 2014 12:33 pm
by swushw
Hi Scott,

applyProperty() resolved my issue. When I used changeElementValue(), it didn't work. I had to load signatures to a grid and loop through it using JavaScript and upload them.

Thanks for your help.

Shirley