首页 > 解决方案 > SharePoint Online - 查找在表单中显示多个值

问题描述

我试图通过下拉菜单在表单的一行数据中显示多列。

现在,它只是显示标题,我可以更改它。我想将其格式化为:

ID + " - " + 标题

我在 SPO 的 EDIT 列中看到了 JSON 中的显示列格式,但我不知道这是否是我要找的。

谢谢 !

标签: jsonsharepointlookupsharepoint-online

解决方案


试试下面的 JSON 代码。

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "txtContent": {
  "operator": "+",
  "operands": [
      "[$ID]",
      "-",
      "[$Title]"
    ]
  }
}

在此处输入图像描述


推荐阅读