Dears 各位先進、高手
小弟為SharePoint入門新手,小弟於list設計表單時,遇到問題想請求高手指點!
小弟想於表單中使用一個欄位將四個欄位顯示在同一欄中,並且稍加美化顯示
這四個欄位得類型分別為:
第一欄欄名稱:FormFactors 欄資訊類型:選擇(下拉式功能表)
第二欄欄名稱:CapacityTB 欄資訊類型:帶有公式的單行文字 (數字後面加TB
第三欄欄名稱:DiskInterface 欄資訊類型:選擇(下拉式功能表)
第四欄欄名稱:DiskRPM 欄資訊類型:選擇(下拉式功能表)
小弟使用了一個單行文字帶JSON公式去跑:
公式如下:{
"elmType": "div",
"style": {
"display": "flex",
"flex-direction": "row",
"gap": "4px"
},
"children": [
{
"elmType": "div",
"style": {
"flex": "1 1 auto",
"height": "30px",
"background-color": "lightgray",
"padding": "4px 8px",
"font-size": "100%",
"font-family": "Microsoft JhengHei, sans-serif",
"overflow": "hidden",
"text-overflow": "ellipsis",
"border-radius": "4px",
"white-space": "nowrap",
"display": "flex",
"align-items": "center",
"justify-content": "center"
},
"txtContent": "[$FormFactors]"
},
{
"elmType": "div",
"style": {
"flex": "1 1 auto",
"height": "30px",
"background-color": "lightyellow",
"padding": "4px 8px",
"font-size": "100%",
"font-family": "Microsoft JhengHei, sans-serif",
"overflow": "hidden",
"text-overflow": "ellipsis",
"border-radius": "4px",
"white-space": "nowrap",
"display": "flex",
"align-items": "center",
"justify-content": "center"
},
"txtContent": "[$DiskRPM]"
},
{
"elmType": "div",
"style": {
"flex": "1 1 auto",
"height": "30px",
"background-color": "lightblue",
"padding": "4px 8px",
"font-size": "100%",
"font-family": "Microsoft JhengHei, sans-serif",
"overflow": "hidden",
"text-overflow": "ellipsis",
"border-radius": "4px",
"white-space": "nowrap",
"display": "flex",
"align-items": "center",
"justify-content": "center"
},
"txtContent": "[$CapacityTB]"
},
{
"elmType": "div",
"style": {
"flex": "1 1 auto",
"height": "30px",
"background-color": "lightgreen",
"padding": "4px 8px",
"font-size": "100%",
"font-family": "Microsoft JhengHei, sans-serif",
"overflow": "hidden",
"text-overflow": "ellipsis",
"border-radius": "4px",
"white-space": "nowrap",
"display": "flex",
"align-items": "center",
"justify-content": "center"
},
"txtContent": "[$DiskInterface]"
}
]
}
但卻無法正常顯示於LIST中,只有在編輯時在該欄位輸入1才看的到
請求各位高手協助!