I'm trying to inject some life into an old Sharepoint site (classic) by creating a new Progress Bar based on a %Complete field.
The new JSON template code provided by Microsoft doesnt seem to want to work on a Classic site, so any help with getting it or something similar to work is greatly appreciated.
I'm applying it to my field %Complete which is just a number field (it's populate via a workflow)
Current Code:
{
"elmType":"div",
"children":[
{
"elmType":"span",
"txtContent":{
"operator":"+",
"operands":[
{
"operator":"*",
"operands":[
"@currentField",
100
]
},
" %"
]
},
"style":{
"background-color":{
"operator":"?",
"operands":[
{
"operator":"<=",
"operands":[
"@currentField",
0.33
]
},
"#ffa500",
{
"operator":"?",
"operands":[
{
"operator":"<=",
"operands":[
"@currentField",
0.66
]
},
"#ffff00",
"#00ff00"
]
}
]
},
"width":{
"operator":"+",
"operands":[
{
"operator":"*",
"operands":[
"@currentField",
100
]
},
"%"
]
},
"text-align":"center"
}
}
]
}