i have to provide a link, once they click on that link the document has to be downloaded. for this i need to give 2 paramater 1. unituq id(we already have) 2. document id(we already have)
can anyone help me with this?
Discussion posts and replies are publicly visible
You can also provide that document download link based on docId only -> a!documentDownloadLink()
{ a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextItem( text: "download doc", link: a!documentDownloadLink(document: 9116) ) } ) }
Yes, as Eren suggested you can use the documentDownloadLink() in any linkfield or richTextDisplayField. You need to pass the doc id dynamically with id so when user clicks on it, then the doc will be downloaded to the system.