Skip to main content
clavin007
Inspiring
November 28, 2018
Answered

Making read-only fields to certain sections once checked on

  • November 28, 2018
  • 1 reply
  • 3794 views

Hi,

I have my client who wants to have a workflow where if person A fills up section A, he will check on the checkbox and only Section A would be read-only. Then he sends it to person B and fills up section B and similarly check on a different checkbox and section B is read-only as shown in the image.

Any thoughts on this?

Thanks with regards,

James

This topic has been closed for replies.
Correct answer try67

Hi try67,

Once the checkbox is checked and if person A already saves it, then the checkbox in Section A cannot be unchecked.

I hope that clarifies the situation.

Thanks with regards,

James


You can use the following code as the MouseUp event of the field, then:

this.getField("FieldA").readonly = true;

this.getField("FieldB").readonly = true;

this.getField("FieldC").readonly = true;

etc. (use the actual field names you want to "lock", of course).

And if you want to lock the check-box field itself then add it too to that list.

1 reply

try67
Community Expert
Community Expert
November 28, 2018

It's possible, but if you want it to really be secure use a digital signature instead of a check-box, and set it to lock those fields.

clavin007
clavin007Author
Inspiring
November 28, 2018

Hi try 67,

My clients prefer using a checkbox to lock the sections instead as he wants it simple rather than having a digital signature workflow.

Do you know how to lock the various sections and what is the code for that?

Thanks and regards,

James

try67
Community Expert
Community Expert
November 28, 2018

Should the fields become "un-locked" if the box is "un-ticked"?