Posts

Showing posts with the label Metadata

Set SharePoint List Form Web Part field values using JavaScript when Creating New Item

How to set values of form fields generated by the SharePoint List Form Web Part when adding a new item to the list using JavaScript. Using a custom metadata field in a SharePoint list to set categorisation & filter criteria that is later used by List and Data View Web Parts to arrange & filter content for specific audiences.  Depending on the audience that a user is in, I wish to set alternate default values for specific fields rendered by the List Form Web Part. In most cases, a custom multiple choice field in the list will be set to a value which corresponds to the current user’s audience, but will sometimes need to be manually adjusted.  To improve the experience for end users, the appropriate checkbox option from the multiple choice field that corresponds to the current user’s audience will be selected when the form loads, and the default value for the field un-checked if required. The custom field is used in multiple content types across the primary site col...

Metadata Property Mappings - Managed Property not populating with data

Managed Property not populating with data I was playing around with search scopes and result page XSL templates in order to develop a search solution that incorporates custom fields from a content type used on multiple site collections.  Content types containing custom columns that were to be searched across, as well as displayed in the search results. The same content type has been reused multiple times across the primary site collection, and has also been deployed and used multiple time in other site collections.  When configuring managed metadata property mappings for the custom fields, I was able to map each field to a managed property by searching for the field name. I was then able to create an advanced search page the included the custom properties.  When incorporating the additional managed properties into the search results, I found that only items from the original (primary) site collection would have data associated with the custom mappings. The cont...

Metadata not saving after editing properties - Document Metadata Error

Metadata Error: Metadata not saving on item in Document Library after editing Properties Scenario: I came accross an issue in a Document library where i was unable to update the document metadata properties using the SharePoint interface.  The Edit Item page worked fine, and I was able to set the metadata to the values i required, but after pressing ok to save the metadata the new values weren’t being saved into SharePoint (reverting back to the previous value).   The issue was on multiple documents, but not specific to a folder within the library or dependent on certain metadata properties.  The majority of documents in the library work fine when applying changes to metadata. After troubleshooting the issue a little, I found that I was able to update the metadata when editing the document using Office 2007.  After saving the document (stored in SharePoint), the metadata would be applied as expected.  I was also able to replicate the issue in a separate ...