How to make multiline text area readonly in code?

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Anton Vityaz
Posts: 7
Joined: Mon Jun 22, 2015

02 Sep 2015

Standart way to fd.field('Description').readonly(true) does not work.

How to make this multiline text area readonly in code?

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

02 Sep 2015

Please use the following code:

Code: Select all

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

User avatar
Anton Vityaz
Posts: 7
Joined: Mon Jun 22, 2015

09 Sep 2015

Thanks! Its' works!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests