Problems with display country image in sharepoint column
Hi,
I have a sharepoint choice-column for selecting a country based on the iso-code (US,BE,NL,ES,…..)
I used json column formatting to display the countryflag :
Hi,I have a sharepoint choice-column for selecting a country based on the iso-code (US,BE,NL,ES,…..) I used json column formatting to display the countryflag :{“$schema”: “https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json”,”elmType”: “div”,”children”: [{“elmType”: “img”,”attributes”: {“src”: “=(‘https://flagcdn.com/w20/’ + toLowerCase(@currentField) + ‘.png’)”}},{“elmType”: “span”,”txtContent”: “@currentField”}]} Problem :when I edit the column : flags are shown.when display in view mode : the flags are not shown, only the two digitcode !! When i look at the source code, something very strange : there are two “src”-parameter in the img-tag ! <img src=”” data-untrusted-src=”https://flagcdn.com/w20/es.png”> Any help will be appreciated Read More