{"id":2896,"date":"2024-04-23T13:25:35","date_gmt":"2024-04-23T11:25:35","guid":{"rendered":"https:\/\/www.itidea.nl\/?p=2896"},"modified":"2024-04-25T12:30:04","modified_gmt":"2024-04-25T10:30:04","slug":"lets-crack-this-code-solving-duplicated-headings-in-sharepoint-list-forms","status":"publish","type":"post","link":"https:\/\/www.itidea.nl\/index.php\/lets-crack-this-code-solving-duplicated-headings-in-sharepoint-list-forms\/","title":{"rendered":"Let&#8217;s crack this code: Solving Duplicated Headings in SharePoint List Forms"},"content":{"rendered":"\n<p>SharePoint is like a playground for customizing list forms, where you can tweak headers, footers, and form layouts to your heart&#8217;s content. And JSON formatters are like the magic wands that make it all happen, just like with column or view formatting. If you want to dive deep into form configuration, Microsoft&#8217;s got your back with their post &#8220;Configure the List Form&#8221; on Microsoft Learn.<\/p>\n\n\n\n<p>Recently, while immersed in the task of formatting the form body within the Site Pages library, my objective was to introduce structured headings to categorize the various fields. Leveraging JSON, the following structure was employed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"sections\": &#91;\n        {\n            \"displayname\": \"Main info\",\n            \"fields\": &#91;\n                \"Title\",\n                \"Name\"\n            ]\n        },\n        {\n            \"displayname\": \"Other info\",\n            \"fields\": &#91;]\n        }\n    ]\n}\n<\/code><\/pre>\n\n\n\n<p>Which resulted in the form displaying the fields with the headings as specified:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"547\" src=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-1.png\" alt=\"\" class=\"wp-image-2899\" srcset=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-1.png 713w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-1-300x230.png 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/a><\/figure>\n\n\n\n<p>Initially, the integration of headings into the form seemed successful, providing clarity and organization for users navigating through the fields. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"869\" height=\"471\" src=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-2.png\" alt=\"\" class=\"wp-image-2900\" srcset=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-2.png 869w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-2-300x163.png 300w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-2-768x416.png 768w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/a><\/figure>\n\n\n\n<p>However, a perplexing anomaly emerged when inspecting the details pane within the Site Pages list. While the headings were appropriately displayed, an unexpected duplication occurred within the standard SharePoint Scheduling section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"830\" src=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-3.png\" alt=\"\" class=\"wp-image-2901\" srcset=\"https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-3.png 935w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-3-300x266.png 300w, https:\/\/www.itidea.nl\/wp-content\/uploads\/2024\/04\/Listformatting-3-768x682.png 768w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/a><\/figure>\n\n\n\n<p>Here&#8217;s the kicker: I&#8217;ve been scratching my head trying to figure this out, but I&#8217;m hitting a wall. That&#8217;s where you come in, dear reader. I need your brains and creativity to crack this code.<\/p>\n\n\n\n<p>Got any bright ideas on how to tackle this?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SharePoint is like a playground for customizing list forms, where you can tweak headers, footers, and form layouts to your heart&#8217;s content. And JSON formatters are like the magic wands that make it all happen, just like with column or &#8230; <a class=\"more-link\" href=\"https:\/\/www.itidea.nl\/index.php\/lets-crack-this-code-solving-duplicated-headings-in-sharepoint-list-forms\/\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,41],"tags":[37,46],"class_list":["post-2896","post","type-post","status-publish","format-standard","hentry","category-office-365","category-sharepoint","tag-office365","tag-sharepoint"],"_links":{"self":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts\/2896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/comments?post=2896"}],"version-history":[{"count":4,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts\/2896\/revisions"}],"predecessor-version":[{"id":2904,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/posts\/2896\/revisions\/2904"}],"wp:attachment":[{"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/media?parent=2896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/categories?post=2896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itidea.nl\/index.php\/wp-json\/wp\/v2\/tags?post=2896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}