Forum Discussion
jonboylib
Aug 24, 2022Iron Contributor
SharePoint List Default Cell Value if Empty
I have a column of type Single Line of Text. When entering data, sometimes the cell will contain data, other times it won't, and can stay empty. If the cell doesn't contain data, on exit/save I w...
- Aug 24, 2022
This seems to work.
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "=if([$field_1] == '', 'n/a', '@currentField')" }
jonboylib
Aug 24, 2022Iron Contributor
This seems to work.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "=if([$field_1] == '', 'n/a', '@currentField')"
}