Forum Discussion
SarWiz
Jun 29, 2022Brass Contributor
URL to a filtered list with a formatted value
I have a Field that has a link to another List. The url is filtering that list.
My code is as follows:
{
"elmType": "a",
"txtContent": "Link to order",
"attributes": {
"target": "_blank",
"iconName": "OpenInNewWindow",
"class": "sp-field-quickAction",
"href": {
"operator": "+",
"operands": [
"[$personnummernr]",
"&FilterType1=Text&viewid=f1016cf3%2D7a5a%2D4ebe%2Daa5a%2Dceeed8e1a629",
"@currentField"
]
}
}
}
The field [$personnummernr] is a json formatted field where I have used replace to take a way a character. It's a text field and it's displaying 12 number digits.
{
"elmType": "div",
"style": {
"box-sizing": "border-box",
"padding": "0 2px",
"overflow": "hidden",
"text-overflow": "ellipsis"
},
"attributes": {
"class": "sp-css-backgroundColor-BgLightGray sp-field-fontSizeSmall sp-css-color-LightGrayFont"
},
"txtContent": "=replace([$personummer], '-', '')"
}
The link worked well last week, today the link gives blank values for personnummernr. Me and my team is confounded with why it's suddenly stopped working.
Thankful for your insights
No RepliesBe the first to reply