What SharePoint development model, framework, SDK or API is this about?
Declarative list formatting
Developer environment
None
What browser(s) / client(s) have you tested
[ ] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[X] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)
Additional environment details
No response
Describe the bug / error
If I set @currentField to the src of the embed action, the callout will not be displayed. If the internal name of the column is set, the callout will be displayed.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
Declarative list formatting
Developer environment
None
What browser(s) / client(s) have you tested
Additional environment details
No response
Describe the bug / error
If I set @currentField to the
src
of the embed action, the callout will not be displayed. If the internal name of the column is set, the callout will be displayed.https://github.com/SharePoint/sp-dev-docs/assets/51254139/921a2d3d-aec3-485b-87fd-e82675247289
Steps to reproduce
Create a
YouTube
column (column internal name: YouTube, column type: single line of text) in the listSet the URL for embedding in the created column
YouTube video used for verification: https://www.youtube.com/watch?v=MHopBnmhPzg URL for embedding: https://www.youtube.com/embed/MHopBnmhPzg?si=sYT8Tpmn6dv5Sc1e
Set the following JSON to the formatting of the created
YouTube
columnCode using the internal name of the column
```json { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "children": [ { "elmType": "div", "style": { "cursor": "pointer", "border-radius": "7px", "padding": "5px 10px", "display": "=if(@currentField,'flex','none')", "align-items": "center" }, "attributes": { "class": "ms-fontSize-s ms-fontColor-white ms-bgColor-themePrimary ms-bgColor-themeTertiary--hover" }, "customRowAction": { "action": "embed", "actionInput": { "src": "[$YouTube]", "width": "640", "height": "360" } }, "children": [ { "elmType": "span", "style": { "margin-right": "5px" }, "attributes": { "iconName": "MSNVideosSolid" } }, { "elmType": "span", "txtContent": "Watch YouTube" } ] } ] } ```JSON using @currentField
```json { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "children": [ { "elmType": "div", "style": { "cursor": "pointer", "border-radius": "7px", "padding": "5px 10px", "display": "=if(@currentField,'flex','none')", "align-items": "center" }, "attributes": { "class": "ms-fontSize-s ms-fontColor-white ms-bgColor-themePrimary ms-bgColor-themeTertiary--hover" }, "customRowAction": { "action": "embed", "actionInput": { "src": "@currentField", "width": "640", "height": "360" } }, "children": [ { "elmType": "span", "style": { "margin-right": "5px" }, "attributes": { "iconName": "MSNVideosSolid" } }, { "elmType": "span", "txtContent": "Watch YouTube" } ] } ] } ```Expected behavior
Callouts are displayed even if
@currentField
is used.