{ "_comment": "A button to open a hyperlink", "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "style": { "display": "=if(@currentField,'flex','none')", "justify-content": "center" }, "children": [ { "elmType": "div", "attributes": { "class": "ms-bgColor-blue ms-bgColor-blueLight--hover ms-fontColor-white ms-fontColor-white--hover" }, "style": { "font-size": "12px", "border": "1px solid Black", "border-radius": "=if(1==1,'7','0') + 'px'", "box-shadow": "=if(1==1,'2px 2px 2px #999','none')", "cursor": "pointer", "display": "flex", "align-items": "center" }, "children": [ { "elmType": "div", "attributes": { "iconName": "DoubleChevronRight" }, "style": { "display": "=if('DoubleChevronRight' != '','flex','none')", "padding-left": "5px" } }, { "elmType": "a", "attributes": { "class": "ms-fontColor-white ms-fontColor-white--hover", "href": "@currentField", "target": "=if(0==1,'_blank','_self')" }, "txtContent": "='' + @currentField.desc", "style": { "display": "flex", "font-family": "arial", "text-decoration": "none", "padding-top": "3px", "padding-right": "5px", "padding-bottom": "3px", "padding-left": "=(10 + 12) + 'px'", "margin-left": "=(-5 - 12) + 'px'" } } ] } ] }