In this blog, we will discuss the functionality where clicking on the attachment icon opens a pop-up screen, displaying the attached files such as images or PDFs.
Create a canvas app based on your requirements and add an icon in the gallery. Here is the canvas app screen that I have created.
If you look at the screen, an attachments column is present, and an icon is placed within it to trigger the pop-up screen
Now, in the OnSelect property of that icon, write the following
From the above Popup, AttachmentURL are variable names ,You can change it based on your convenience and replace this part of Url https://crmoncee.sharepoint.com with your Sharepoint account Url
Add a container to the screen and place it above the gallery. Adjust the width and height of the container according to your preference
In the Visible Property of the container write the variable Popup
Add a Cancel icon and Image control inside the container
On the OnSelect property of the Cancel Icon write the following
Set(Popup,false)
In the Imageproperty of the Image, write the following
AttachmentURL & “&resolution=6”
Now, it’s time to check whether the pop-up screen is working or not. Attach a file to a record and verify
Click on the attachment icon of a specific record and see the pop-up screen appear, displaying the attachment
For any Help or Queries Contact us on info@crmonce.com or +91 9493926112
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.