Set Ink Sketch Control to Readonly Programmically

How do you set Ink Sketch control to Readonly programmically? It doesn't work with the codes below.

fd.control('Signature1').readonly = true;


fd.control('Signature1').disabled = true;

Any assistance would be appreciated.

Hello @COR6603,

Thi code should work:

fd.control('Signature1').disabled = true;

How do you run the code? On button click, form load or when the field value is changed?
Are you getting any errors in the browser console(F12)?

I deleted and re-created the ink sketch control and it's working now. Thank you!

1 Like