I have a list with a hyperlink field. I want to format the link to look like a button. I have tried a gazillion websites, gotten all kinds of CSS, but none of it seems to work.
I've tried two approaches - creating a button and creating an anchor hyperlink. The button type doesn't seem reasonable, as the "action" value set is limited to row list actions (open, edit, delete, etc.)
Here's a sample of what I've tried using an anchor hyperlink:
{
"elmType": "a",
"txtContent": "Go to Client Data",
"style": {
"text-align": "center",
"display": "inline-block",
"padding": "4px 4px 4px 4px"
},
"attributes": {
"class": "sp-field-quickAction",
"href": "[$ClientSiteURL]",
"target": "_blank"
}
}