https://lifehacktivist.com/sharepoint-lists-faq/
を参考に、SharePoint内のコミュニケーションサイトのリストの中でFAQを作ろうとしています。
参考にしたページの内容までは出来たのですが、
更に項目「MailSample」を追加したいと思い、下記のようにしたのですが、「MailSample」の欄には何も表示されません。
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", "hideListHeader": true, "hideSelection": true, "rowFormatter": { "elmType": "div", "style": { "display": "flex", "flex-direction": "column", "align-items": "flex-start" }, "children": [ { "elmType": "div", "attributes": { "class": "ms-bgColor-themePrimary ms-borderColor-themeDark ms-fontColor-white" }, "style": { "font-size": "18px", "border-width": "2px", "border-style": "solid", "width": "100%", "padding": "4px" }, "children": [ { "elmType": "span", "txtContent": "Q", "attributes": { "class": "ms-fontColor-themeTertiary" }, "style": { "padding-right": "10px", "padding-left": "6px", "font-weight": "bold" } }, { "elmType": "span", "txtContent": "[$Title]" } ] }, { "elmType": "div", "attributes": { "class": "ms-borderColor-themeDark" }, "style": { "padding-left": "40px", "width": "100%", "border-width": "2px", "border-style": "solid", "padding": "4px", "font-size": "14px", "border-top-width": "0" }, "children": [ { "elmType": "span", "txtContent": "[$Answer]" } ] }, { "elmType": "div", "attributes": { "class": "ms-borderColor-themeDark" }, "style": { "padding-left": "40px", "width": "100%", "border-width": "2px", "border-style": "solid", "padding": "4px", "font-size": "14px", "border-top-width": "0" }, "children": [ { "elmType": "span", "txtContent": "[$MailSample]" } ] }, { "elmType": "a", "txtContent": "[$link.desc]", "attributes": { "href": "[$link]", "target": "=if([$OpenInNewTab] == true, '_blank', '')" }, "style": { "padding-left": "40px", "width": "100%", "border-width": "2px", "padding": "4px", "font-size": "14px", "border-top-width": "0", "margin-bottom": "20px" } } ] } }
どのように対応したら、「MailSample」の値を画面表示できますでしょうか?
■項目の設定画面(参考にしたページ通りの「Answer」と、追加の項目「MailSample」)
■ちなみに、
上記ソースの「MailSample」の箇所を「Answer」にすれば、下図のように表示されます。
こうなってくると、「MailSample」の項目定義の問題が考えられますが、
項目定義も問題ないように思えますので、手詰まりとなっております。
0 コメント