I am trying to revise a form that was created by a predecessor of mine which uses' many custom calculation scripts that are inter-related as a way of form validation. I am trying to add my own custom calculation script to a box (Box27b) that will require information to be placed into it per our standards. But, once I sign the document (IAOsign) I would like for that information to disappear/redact from the document, while still leaving the many other numours fields inside of the document in its read-only state upon my signature.
Under the Signed event of the Signature field you can add a command to reset this field.
If I were to that there are about 40+ boxes that need to be set to read only along with the signature. The form is currently set with these already 'Checked' if you will to have those fields set to read only.
I don't see the need of redacting after you sign your portion if you're referring to field objects, not the same as annotations.
Adobe Acrobat provides a way to do this with the "Certificate" tool.
It allows the creator of the form to certify a document with a certificate-based (or self-signed certificate based digital signature) with an visible or invisible signature.
Certifying a PDF with such signatures makes the entire document read-only and if you choose "Certify" (Invisible Signature) from the Certificate tool there's no need to redact as a second step process using this method.
Just keep in mind that redactions deal with the annotations properties, not the the field objects properties. So when you say disappear in the context of annotations, do you mean destroy them or delete them permanently?
Redacting will just overlay a color over the annotation that you apply the redacting action (I may be wrong though).
If you also need other field objects (not the same as annotations) to appear as redacted you can change the fill color of that field, make them read only, or even hide them.
The reason for the redactin is that the form processes through several departments that need PII to be placed on the form, but when placed into our records amangement system, we need all PII removed from the form. Redaction isn't needed so much as the permanant deletion of the info from the form, but redaction would work for the intent.
Are the PII's in the form of annotations (or comments) or are the PII's typed in throughout the form in text field objects, selected items in dropdown menus or list boxes, for example?
The PII will be Typed in Info in only that one block.
The steps below are redundant to this topic since you already mentioned that youhave over 40 fields checked as read-only. But for the benefit of other community memebers who may be struggling with a similar "How-to', here are the steps:
Alternatively, in addition to the steps above, if you need the PII field data to remain visible the document is signed, I add an additional custom calculated script in the dependent text field (in your case this would be the PII text field (Box27b) :
/* in the PII text field (Box27b) field properties dialogue box go to the "Calculate" tab and select "Custom Calculation Scrfipt". Add the following line: */ if (this.getField("IAOsign").value =="") event.value ="";
This script will ensure that when you clear the digital signature in the (IAOsign) signature block , whatever data is in (Box27b) will set this field with a null (or blank , if you may) value.