How to set the default value for a SharePoint page layout field when using Design Manager snippets?

Darian Glover
Occasional Contributor

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-..., 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.


Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies