Hello,
I have a live cycle form which needs to have all of the text fields set as read only after signing.
The java script has been placed in the post sign event of a digital signature field.
for(var i=0;i<this.numFields;i++) {
var cNm = this.getNthFieldName(i);
if (cNm.type = "text") this.getField(cNm).readonly = true;
}
After signing the form the following console error is shown:
this.getNthFieldName is not a function
Can anyone please advise how to revise the script so that when the form is signed all of the text fields become ready only?
Any assistance will be most appreciated.
Thank you.