Forum Discussion
How to set the default value for a SharePoint page layout field when using Design Manager snippets?
I have a business requirement to set a default value for a field within a SharePoint page layout. When attempting to enter a value in ListItemFieldValue within the snippet customization I encounter the error Cannot create an object of type 'System.Object' from its string representation '#myValue#' for the 'ListItemFieldValue' property.
I've tried using ItemFieldValue, ListItemFieldValue, and Value with the same results. I came across an article that shows how to manually code in a value for a rich text field, https://sharepoint.stackexchange.com/questions/173555/pre-populate-html-content-in-the-page-content-field-of-custom-article-page-layou, but cannot find any similar information for other field types.
I am specifically trying to set the default value for a managed metadata column. I am encountering the error for other field types, such as a number column.
1 Reply
- MarinBuricCopper Contributor
Darian Glover if it's not too late - try this https://www.sharepointdiary.com/2013/10/column-default-value-settings-in-sharepoint.html