Created
July 14, 2019 11:37
-
-
Save chrisobriensp/9775cd577ecad692ba8cc22cab5244f7 to your computer and use it in GitHub Desktop.
Some JSON to use with SharePoint JSON column formatting to provide a link to a custom form.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"style": { | |
"padding-right": "8px" | |
}, | |
"txtContent": "Cross charge form" | |
}, | |
{ | |
"elmType": "a", | |
"attributes": { | |
"iconName": "FormLibrary", | |
"class": "sp-field-quickActions", | |
"href": "= @currentWeb + '/SitePages/Cross-charge-form.aspx?itemId=' + [$ID]" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment