Indranil Sarkar
Indranil Sarkar

Reputation: 1280

How to unlock a field of an entity in CRM Dynamics 4.0

I have an email entity, which contains a subject field which is locked. It's already unlocked in the property option. But still it's showing locked.

Welcome for any comment and suggestion.

enter image description here

on selection of a 'subject' attribute, I clicked on 'Change Property' and I found it;s already unlocked. Please help how to unlock this. see below enter image description here

Upvotes: 1

Views: 4757

Answers (5)

nairware
nairware

Reputation: 3190

If there is a red lock on the field, that is different from business required (the red star). The red lock on the field means you cannot do anything except leave that field on the form.

The workaround to address this situation is to create a hidden tab. All fields are presented within tabs. If you simply create one tab - label it as the "Hidden" tab - then you can throw all of the fields that you want to hide into that tab.

Use JavaScript to hide the tab:

document.getElementById("tab<tabNo>Tab").style.display = "none"; //CRM 4.0 syntax

or

Xrm.Page.ui.tabs.get("Hidden").setVisible(false); //CRM 2011 syntax

Upvotes: 0

Indranil Sarkar
Indranil Sarkar

Reputation: 1280

Thanks for all of your support. I wanted to modify the subject field on email entity. Not to hide it any way. I have done it by exporting the email entity, modified the XML file by deleting Subject Cell () and then saved it. Then finally import the xml file in import customization and publish it.

Upvotes: 0

Rickard N
Rickard N

Reputation: 408

Since this is a CRM 4 the syntax to do the hiding is somewhat different from CRM 2011 which nairware posted. In this blog you can see how to hide elements on a form.

Upvotes: 0

Jason Lattimer
Jason Lattimer

Reputation: 2848

Some fields are required by the system and cannot be removed from the form. Ideally Microsoft should probably have set the field to locked and disabled the option.

Upvotes: 2

James Wood
James Wood

Reputation: 17552

It's because CRM excepts that always to be populated (how often do you send an email without a subject?).

There are a couple of fields like that in CRM, I'm guessing you are trying to hide it, probably easiest to accomplish with JavaScript.

Upvotes: 0

Related Questions