Forum Discussion
Dhiran Gajjar
May 24, 2019Iron Contributor
Column Formatting AND
Hi, I am trying to show a button for a flow action based on a specific content type and the content approval set to pending. I can show the button if I only have the one field in the if state...
Unnie
May 24, 2019Iron Contributor
Dhiran Gajjar There is a small mistake in the if clause with single quotes missing for 'visible'. These things can be tricky to spot. Try below:
"visibility": "=if([$ContentTypeId] == '0x010100328330ABC4EBE147A62B17E6255724E7', if([$_ModerationStatus] == 'Pending','visible','hidden','hidden'))"
Dhiran Gajjar
May 25, 2019Iron Contributor
Unnie - thanks for correcting my JSON but now it correctly works for the content type but the 2nd if doesn't seem to effective
"visibility": "=if([$ContentTypeId] == '0x0101005C391C83C0D9804184EE67C2B5A82F84', if([$_ModerationStatus] == 'Pending','visible','hidden','hidden'))"