I would like to disable input fields for managed metadata from the term store in a new item or edit item form on a custom list.
Should work in Chrome and IE.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
This can be done quite easily with jquery. If you take a look at the field with your browser's developer tools SharePoint puts the MMS field into a div with the title being the display name of the field. As an example, my form as a MMS field called Security on it.
When I look at the browser tools I see this:
<div title="Security" class="ms-taxonomy-fieldeditor ms-taxonomy-fieldeditor-standard" style="width: 364px;"></div>
I can add the following jquery to disable that field:
However I am not done as the image is still active and can set the value of the field.
To take care of that, I simply grab the parent div, find the img within and hide it:
Hope that helps.
Every textbox that is made out of a div in Sharepoint, has a div element as container and a div for textbox and span for the text in it.
The property you have to disable for the div in the container is the
So this is my answer and it works in Chrome and IE. It is just not getting the disabled look as the other fields, but you can apply some CSS on it to achieve the look.
For the image of the term store selector just use: