Add Text via Java Script
Hi,
I do have a js-Script that adds three signature fields in my PDF. Now I'd like to have above a caption that says "Hereby I sign blah...".
How do I get that?
Hi,
I do have a js-Script that adds three signature fields in my PDF. Now I'd like to have above a caption that says "Hereby I sign blah...".
How do I get that?
But this doesn't work:
this.addField("txtSignAN","text",0,[60,100,210,80]);
var varSignAN = this.getField("txtSignAN");
varSignAN.defaultValue = "Hereby blah";
varSignAN.editable = false;
The text field will be added, but the defaultValue isn't put in and editable is not set to false...
- You need to set the value property, too.
- There's no "editable" property. Use:
varSignAN.readonly = true;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.