使用JSON格式化 [英] Formatting with JSON
问题描述
我正在使用SharePoint 365. application 联系人.
I am using SharePoint 365. Problem with application Contacts.
We need to add a link to the column Pager. I did it with JSON Column Formatting. And it working fine. But JSON working only if you switch to a new experience.
不幸的是,标准电子邮件字段现在显示为 < a href =" mailto:AnyEmailAddress@gmail.com"> AnyEmailAddress@gmail.com</a> 格式
Unfortunately, the standard e-mail field now displayed as <a href="mailto:AnyEmailAddress@gmail.com">AnyEmailAddress@gmail.com</a> format
我使用电子邮件地址创建了一个简单的文本字段.并使用JSON对其进行格式化.按照示例中的建议
{
"elmType": "div",
"children": [
{
"elmType": "span",
"style": {
"padding-right": "8px"
},
"txtContent": "@currentField"
},
{
"elmType": "a",
"attributes": {
"iconName": "Mail",
"href": {
"operator": "+",
"operands": [
"mailto:",
"@currentField"
]
}
}
}
]
}
it's working but address displayed in the same format
< a href =" mailto:AnyEmailAddress@gmail.com"> AnyEmailAddress@gmail.com</a>
<a href="mailto:AnyEmailAddress@gmail.com">AnyEmailAddress@gmail.com</a>
知道我该如何解决吗?
Any Idea how I can fix this?
谢谢
康斯坦丁
推荐答案
您尝试切换到现代体验后尝试重新应用格式吗?
did you try to re-apply formatting after switching to the modern experience?
这篇关于使用JSON格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!