【问题标题】:How can add blank as a first element of a dropdown in sharepoint list using JSON list formatting?如何使用 JSON 列表格式将空白添加为共享点列表中下拉列表的第一个元素?
【发布时间】:2022-01-12 10:54:17
【问题描述】:

我有一个查找类型的下拉列。我想在此下拉列表中添加一个空白作为第一个元素。 我可以在 sharepoint 中使用 JSON 列表格式吗?

我试过这段代码但没有用:

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
            "forEach": "person in @currentField",
            "txtContent": "=if(loopIndex('person') == 0, 'test', person)"         
}

【问题讨论】:

    标签: sharepoint sharepoint-online


    【解决方案1】:

    据我所知,查找列从父列表中获取值,在此查找列下拉列表中添加空白值作为第一个元素是不可用的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-13
      • 2012-08-20
      • 1970-01-01
      • 1970-01-01
      • 2021-08-22
      • 1970-01-01
      • 2020-05-06
      • 2021-01-06
      相关资源
      最近更新 更多