Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Make all text fields read only after signing form

Avatar

Former Community Member

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

You don't need any JavaScript to do this.

In Designer you can setup the signature field in that way, that all fields will be locked after signing.

Look here:

http://forums.adobe.com/message/3121870?tstart=2

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

You don't need any JavaScript to do this.

In Designer you can setup the signature field in that way, that all fields will be locked after signing.

Look here:

http://forums.adobe.com/message/3121870?tstart=2

Avatar

Former Community Member

Thank you very much for your help.

I found "lock fields after signing" in the object pallete (for the signature field) and clicking on the signature tab.

Best regards

Jo