Disable document download link field in Read Only grid

Certified Associate Developer

Hi, 

I want to disable document link from read only grid if document is not exists or deleted from document folder.I am using following code to show and download document from read only grid.

a!gridColumn(
label: "File Name",
value:
a!linkField(
links: a!documentDownloadLink(
label: index(fv!row, "myFileName", {}),
document: index(fv!row, "appianDocId", {})
)
)
)

Please Suggest me any solution for this.

  Discussion posts and replies are publicly visible