Is it possible to show the Word document using documentViewerField.
current behavior- When we click on the tab to display document, its downloading directly
Expected behavior- The document should be visible for like PDF and downloadable.
Discussion posts and replies are publicly visible
Hi rakeshm822985 ,
It is not possible to show the word document using the documentViewerField().I would suggest instead of hard coding the value for the document it should be fetch within the local variable and then use the documentViewerField to display it but it won't work with Docx file. Please refer the code below:
a!documentViewerField( label: document( documentId: cons!MY_PDF, property: "name" ), document: cons!MY_PDF )