I got this problem:
I got a column named "TrackingNumber". In this column I want to be able to click on the displayed Number.
The extra feature is, that in another column, there is the shipping company.
Now I would like to ensure that if, for example, "DHL" is entered as the shipping company in the "shipping" field, the DHL tracking link is used.
However, if another company is against in the "shipping" field, the other link should be used.
Right now I have the following:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "a",
"txtContent": "@currentField",
"attributes": {
"href": "=if([$note.]=='1'),'https://mydhl.express.dhl/at/de/tracking.html#/results?id=6678310192', if([$note.title]=='2', 'https://www.post.at/en/sv/item-details?snr=1034598500013780802765'))",
"target": "_blank"
}
}
Unfortunately, the tracking number is no longer displayed for this version.
Could someone help me here, please?