Reputation: 1280
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.
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
Upvotes: 1
Views: 4757
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
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
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
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
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