I just found out I cannot use "Newsletter style" for my FAQ lists in a modern site. If I use that the entire site will switch between classic and modern style. So I am trying some list formatting with JSON.
The problem is that the answer column is not displaying properly. The thing is that this field could contain pictures and tables, etc so I just want the JSON to take the contents and display all of it, and skip displaying div information.
How can I adjust the display of the answer so it just displays the contents?
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"hideSelection": true,
"hideColumnHeader": true,
"rowFormatter": {
"elmType": "div",
"attributes": {
"class": "sp-row-card"
},
"children": [
{
"elmType": "div",
"style": {
"text-align": "left"
},
"children": [
{
"elmType": "div",
"attributes": {
"class": "sp-row-title"
},
"txtContent": "[$Title]"
},
{
"elmType": "div",
"attributes": {
"class": "sp-row-listPadding"
},
"txtContent": "[$Answer]"
}
]
}
]
}
}