question

MadelineJen-1582 avatar image
0 Votes"
MadelineJen-1582 asked MichaelHan-MSFT commented

callout.js not located

Hi, I would like to create a callout to display comments in the list view. However, I'm not able to locate callout.js in my c drive (base on this website ). Is there another way to locate the file or create callout?



Thank you


office-sharepoint-server-development
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered MichaelHan-MSFT commented

The callout.js file is not located in the local machine. It is located in the server where your SharePoint is installed.

For SharePoint 2013, it is located in:
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS

For SharePoint 2016, it is located in:
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\TEMPLATE\LAYOUTS

You don't have to locate the file. Just use the SP.SOD.executeFunc function to create your custom callout. Below is my demo code for your reference:

12889-7.png
Test result:

12950-4.png

Reference:
36851.sharepoint-2013-creating-custom-callouts.aspx
highlight-content-and-enhance-the-functionality-of-sharepoint-hosted-sharepoint



7.png (14.9 KiB)
4.png (8.9 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Michael,

Thank you for the explanation and the script. My goal is to have the callout display the comments in list view in SharePoint 2013. I'm new to SP, Can you walk me through the process?

Thank you
Madeline.

0 Votes 0 ·

Hello, Madeline.

What comments did you want to display? You could just create the callout as I mentioned, just change the content you want to disply in content attribute.

0 Votes 0 ·
srikanthmsft avatar image
0 Votes"
srikanthmsft answered

Test as per the user reported.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VenkataNageswaraRaoAkula-3276 avatar image
0 Votes"
VenkataNageswaraRaoAkula-3276 answered

Test as per the user reported.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.