I want to show button A or button B in a column depending on value in another column.
one button should start a flow, another button should launch a hyperlink also I need to add other buttons.
I have spent the day googling and fudging and the current code shows nothing, if I remove the code for button B then button A works.
{
"elmType": "div",
"children": [
{
"elmType": "button",
"txtContent": "New ",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"be40d280-88df9a875fa\"}"
},
"style": {
"display": "=if( ([$Kent] == 'A' ), 'block', 'none')"
}
},
{
"elmType": "button",
"txtContent": "New",
"attributes": {
"target": "_blank",
"href": "='URL'"
},
"style": {
"display": "=if(([$Kent] == 'B'), 'block', 'none')"
},
}
]
}