Make Dynamics CRM 2011 field readonly NOT disabled

I would like to make a inputfield readonly. I am familiar with the setDisabled() method in XRM, the downside of this method is that it is not possible to copy/paste values from the fields.

Is there another way then using javascript/jQuery directly to set the readonly property on the field by using it's field name?

Kind regards Rim

Answers


You can use jQuery to do this:

$("#element").attr("readonly" , "readonly");

Need Your Help

How do I use Try and Catch to retry an operation in VB.Net?

.net vb.net exception try-catch

I'd like to read from a file and if I fail, let the user retry or otherwise give up. So far the code looks like this:

Apply CSS to child DIV only

javascript jquery html css

OK, let's say I have a similar structure like the one following :

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.