Page 1 of 1

How to make multiline text area readonly in code?

Posted: 02 Sep 2015
by Anton Vityaz
Standart way to fd.field('Description').readonly(true) does not work.

How to make this multiline text area readonly in code?

Re: How to make multiline text area readonly in code?

Posted: 02 Sep 2015
by rostislav
Please use the following code:

Code: Select all

fd.field('InternalName').control()._el().find('div.ms-rtestate-write').attr('contenteditable', 'false');

Re: How to make multiline text area readonly in code?

Posted: 09 Sep 2015
by Anton Vityaz
Thanks! Its' works!