2

This works and shows Title as an output:

{
    "elmType": "div",
    "txtContent": "[$Title]"
}

Below doesn't work to show the Description column, type for this column is "Multiline Text":

{
    "elmType": "div",
    "txtContent": "[$Description]"
}
4
  • Is this a plain text or rich text multiline text column? Mar 23 at 15:30
  • multiline text column Mar 23 at 15:33
  • multiline plain text or rich text column? rich text columns are not supported in JSON formatting. Mar 23 at 15:34
  • Its Plain text, Rich text with picture, tables and hyperlinks is disabled or selected No Mar 23 at 15:44

1 Answer 1

1

Your JSON code looks fine. Make sure you are doing below things correctly:

  1. Make sure you are showing Description field on list form like:

    enter image description here

  2. Make sure you are using correct internal name of description column as JSON formatting works with internal names.

    Check this URL to find out the internal name of SharePoint column: Find the internal name of SharePoint column.


I have tried the same code at my end & it is working fine, check this output:

enter image description here

Note: Description text in header is updated after you change the description field value & click outside of the textbox.

3
  • 1
    Finding the internal name resolved the issue, since I imported data from excel to generate this list it was referred as field_2. Thanks for the help. Can i ask you another question... "In the similar manner why isn't a choice column getting displayed, I checked the internal name "? Mar 23 at 16:09
  • If it is a single selection choice column, it should work simply by referring to its name using [$InternalName]. Mar 23 at 16:35
  • 1
    Changed the Choice column to single selection and it works , thanks for the help. Mar 23 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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