Navigate Up
Sign In
Supporters of Developer
Web

SharePoint: Hide Taxonomy Suggestion

Item is currently unrated. Press SHIFT+ENTER to rate this item.1 star selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+ESCAPE to leave rating submit mode.2 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.3 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.4 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.5 stars selected. Press SHIFT+ENTER to submit. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.

You may also be interested in: Documentation Toolkit for SharePoint by Acceleratio Ltd.

 

Editor's note: Contributor Akshay Koul is a SharePoint Evangelist and ArchitectPointBeyond. Follow him @akshay_anur

Problem Statement: OOB the SharePoint taxonomy field renders a suggestion box post with a Metadata terms selection as in the image below. The client did not want to have this box post selection (they were not typing in the taxonomy but selecting it from the image button on right)>

2012-07-09-HideTaxonomy-01.png

We could not find any property on the field to not show this box. Writing custom JS to hide is not that straightforward as SharePoint overrides the display property and custom control was too much for too little.

The alternate solution is to write a Url Rewrite in IIS to block any request which shall return the ‘suggestions’. The field actually makes the following request to the url “_vti_bin/TaxonomyInternalService.json/GetSuggestions” to load the suggestions. Writing a url rewrite entry to block request to this url did the trick.

Note: since its a web application entry, the new behavior will be replicated for all the Site collection in the web application.

2012-07-09-HideTaxonomy-02.png

Categories: Taxonomy; Metadata; MOSS; WSS; 2010; Javascript and jQuery

Comments

Notify me of comments to this article

E-mail:
   

Add Comment

Title:

 
Comment:
Email:

   


Name:

 
Url: