Issue with documentDownloadLink

Hi,

The below line of is working in "Expression Mode" and when I click on "TEST" button during development. But, when I saved and test using browser, I am getting an error like 

{"error":"APNX-1-0000-000","message":"Invalid Content ID","title":"An Error Has Occurred"}.

Any suggessions please.

a!richTextDisplayField(
labelPosition: "COLLAPSED",
value: {
a!richTextItem(
text: "download doc",
link: a!documentDownloadLink(document: fv!item.document)
)
}
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data