1

I would like to display the ID of a list item on a JSON-formatted form. I tried adding "ID" directly but it would not render. I created a calculated column that is the concatenation of ID and Title. This field renders fine in the BODY but not in the HEADER.

How can the ID of a list item be displayed in it's JSON formatted header?

Or, is there some workaround/hack that can achieve this same functionality?

1
  • 1
    This is a bug with form formatting. The ID value should always be available like it is everywhere else in list formatting. For whatever reason, this is not working as expected in Form formatting. Commented Apr 1, 2021 at 20:45

1 Answer 1

3

As per the current design, you can refer only those columns which are shown on list forms in your JSON.

Similar thread: How to detect Edit vs New when styling custom list forms with JSON?

As Chris mentioned in his comment, we should be able to use the [$ID] in form formatting as well like we can use it in column/view formatting.

So, I have created a bug/question on GitHub for the same: Not able to use [$ID] while configuring a list form using JSON

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.