Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [web-part]

Web parts are ASP.NET controls that can be added to web part zones. They are generally distributed through the deployment of .WSP files. Pre-2013, they could be developed off the hosting server. With 2013, Web Parts for the most part have to be developed on the hosting server for proper library inclusion.

Filter by
Sorted by
Tagged with
2
votes
1answer
50 views

SharePoint online column formatting not reading my children array in JSON object

I can get the formatting to render the background and font style for the column text but not the icons in the children element. I have messed with this for days. I must use style elements as opposed ...
0
votes
0answers
24 views

Dropdown from List

I have a page that I would like to create a dropdown list that is linked to other areas of the page. I used the choice webpart . Can the web part dropdown instead of popout?
0
votes
1answer
30 views

Connect HTML with Document Library

Is it possible to add an Html page as a web part inside SharePoint. I want this html page to have rows of links that once clicked, it would bring users to specific folder inside a Document Library on ...
0
votes
0answers
23 views

Why do the headings in the text web part differ from the HTML in SharePoint Online?

When I inspect a text element on a site page I see that headings in the text map to different HTML headings. When I apply a Heading 1, I see an H2 in the code. When I apply a Heading 2, I see an H3 ...
0
votes
0answers
11 views

Web Form with unique ID to CSV

I have a big question, I just joined a project for work about sharepoint. They threw me in there with knowing that I dont have any SharePoint knowledge. I dont want to let my first project down so i'...
0
votes
1answer
31 views

Modern page -> Modern Document library webpart

System: SP19 on-premise; Page: Modern page; Webpart: Document library; Situation: I want to open DocSet in the same or the new tab with all details in in (standart docset page); When I pressed on ...
0
votes
2answers
415 views

Modern List NewForm on Modern Site Page?

Any way to embed a Modern List New form into a modern site page? Dialog option does not seem to work and I see no web part option.
4
votes
1answer
414 views

Print Files through SPFx/JS?

I would like to build a button which would send a batch of files to the printer when clicked (It can prompt the user. Doesn't need to go to the printer without approval). The files would exist in a ...
0
votes
0answers
106 views

“File Viewer” modern web part zoom level for an excel sheet

I have an excel sheet inside my PC, and I set its zoom to 50% and save it. Then I uploaded it to our SharePoint online document library >> then I show it inside a modern page using "File Viewer" ...
0
votes
1answer
50 views

Add-pnpClientSideWebPart not working as expected

I´m trying to add a WebPart to a modern page via PnP. Add-PnPClientSideWebPart -Page "home.aspx" -DefaultWebPartType ContentRollup -Section 3 -Column 1 -WebPartProperties @{layoutid="List"} It ...
1
vote
0answers
33 views

Picture Library Slideshow Webpart Library View

I inherited a SharePoint site that has a photo gallery section. Inside the photo gallery there are multiple pages and each page is supposed to have a filtered list of photos in the slideshow from the ...
0
votes
1answer
22 views

Layout - enlarge multi-value fields using designer

I changed an Edit Form in Sharepoint (included a script editor web part) to enlarge multi value fields list boxes (they were to small in width) and it worked (inserted code snippet). However, if i ...
0
votes
0answers
98 views

Adding Microsoft shifts in to SharePoint online

We have started using Microsoft shifts in Microsoft teams for our service desk team but we want to give all employees visibility of their shift patterns so they know who is in each day. I can't work ...
0
votes
0answers
9 views

How to highlight new items

I've been tasked with highlighting the recently added content on one of main pages of my company intranet page. I need to restrict the items that are shown by the sub-pages under the main page. I'm ...
1
vote
1answer
28 views

Help: Modify code to only show once the Edit Form

The code bellow allows for the edit for to show up when you use the Drag&Drop option to upload files. If you select multiple files, the edit form will also appear multiple files Is it possible ...
1
vote
0answers
26 views

Bulk Upload & Give same Metadata to all of them

Goal: Is it possible to change the code in a way that when uploading mutiple files, the Metadata to appear only once and all the files being uploaded to get the same Metadata ? How the code works ...
2
votes
1answer
246 views

How can I fit a Datatable only into a webpart (not page) dynamically?

I develop a Webpart, which should be deployed in other SP-Farms. The Webpart contains a DataTable. I deployed the solution and the DataTable appears in the right side of the Website. I'm using a ...
2
votes
3answers
937 views

Can a web part prevent master page jQuery from executing properly?

I'm including jQuery and a custom .js file into the master page of my SharePoint 2010 site. In the $(document).ready() function, I'm setting a live event handler on an element in the header of the ...
1
vote
3answers
5k views

How do I run some JavaScript in a web part?

I found some JavaScript code on the web that I want to add to my custom web part so that I can modify a PageViewerWebPart's height to 100%. I just need to know what steps to take to call it. I added ...
10
votes
2answers
10k views

Adding ScriptLink for js file to my Visual Webpart causes error: “Cannot make a cache safe URL for…”

Full error: Cannot make a cache safe URL for "sprocketcomplete/layouts/sprocketcomplete/js/sprocketcomplete.js", file not found. Please verify that the file exists under the layouts ...
11
votes
4answers
3k views

Why does having `windows.onload` break page editing?

This is related to an earlier question that I posted: Can't edit page after adding custom web part! Basically, I have created a web part with some javascript. When I add this web part to a page,...
0
votes
2answers
23 views

Turn Title bar filters on at all time

We have a number of custom lists, and on some of the larger ones the sidebar popping up is undesirable. We added Filter=1 to the links to the lists which turns on the filters at the top, which is ...
0
votes
0answers
20 views

How to fix browser displaying horizontal scroll after inserting web part list?

I have this web part list of named resources that displaying 5 column 500px fixed width, it has vertical scroll in it. it is in table form and // I tried to edit the css by resizing both table and ...
2
votes
3answers
10k views

how to show a list of all subsites that are under a parent subsite using Web Parts. similar to the list inside the site content

I have team site collection inside SharePoint 2013. Where I created a parent sub site inside it. Then under the parent sub site I created many sub sites. Now I need inside the parent sub site's home ...
0
votes
0answers
10 views

View count for documents across all document libraries with timeframe

I am trying to get view counts across document libraries for all the documents (pdf/docs/docx/pttx/xslx/etc) not the web pages. What I am trying to do is getting the count for the total documents in ...
0
votes
0answers
22 views

Strange error in Display Template after removing other web part

I'm facing a strange error when a user edits a web part page. There are a couple of web parts on this page, like content editor, a search content web part (for displaying some user information from ...
0
votes
1answer
47 views

To display the webpage again, Internet Explorer needs to resend

I have the code from Here to my document library The script basically opens the edit form when you Drag & Drop files into Document library. The code seems to work fine, however I am getting ...
0
votes
0answers
14 views

listviewebpart GetDesignTimeHtml() return blank webpart

I am programatically creating ListViewWebpart in SharePoint 2010. I am querying the list and programatically trying to add the listviewwebpart to the page. When I do this listviewebpart....
0
votes
1answer
86 views

Help: How to use this script in Document Library

There is this script which I got from Here. I just have to add ScriptEditor WebPart to my library page and apply this code Not sure how to go with this. I know how to go edit and add a Webpart and ...
0
votes
0answers
26 views

Powershell script to get all site pages which has yammer webpart

Is there any powershell script to get all site pages (Title, site link) within the site collection, which has yammer web part in SharePoint online?
1
vote
0answers
15 views

Content Query Web Part - Get each task's site

Using a custom content query web part and XSL file in SharePoint 2016, I am bringing in tasks across a site collection. I would like to bring in each task's associated site. Using this article as a ...
0
votes
1answer
22 views

Sharepoint sp start kit webparts question.Is there a script/content editor webpart?

I have provisioned the starter kiton my tenant and its really impressing with some additional webparts included. see below https://github.com/SharePoint/sp-starter-kit But can we still get the ...
0
votes
1answer
62 views

SPContext.Current.Web.CurrentUser returns incorrect/random value

On button click I am saving few values and the user who performed the action by using SPContext.Current.Web.CurrentUser in the list But SPContext.Current.Web.CurrentUser is not returning the correct ...
0
votes
0answers
9 views

Retrieving and displaying values on my web part

I have created a web part property to take in a string value by user and then search my document library for a list of documents that contains the specific value entered, for example "ABC". However, ...
0
votes
0answers
12 views

How to display information on my webpart

I have created a web part property to take in a string value by user and then search my document library for a list of documents that contains the specific value entered, for example "ABC". However, ...
11
votes
3answers
54k views

Display New Form of a List in a Web Part page

How can we show a List Form/New Item Form (/servername/site/Lists/listname/NewForm.aspx?) as a web part in a SharePoint 2010 page? Adding a list web part obviously only shows the list items/views. I ...
0
votes
2answers
32 views

Cannot delete homepage web part

Noticed on SharePoint online that when a site is created without a office 365 groups i.e. sts#3 template, you cannot delete home page web part and on lists and library’s you cannot save view as. Has ...
0
votes
1answer
34 views

Create custom webpart that uses CAML Query

I am quite new to Sharepoint and I am supposed to create a webpart that can display all the titles with a specific value from a managed metadata column(TAGS). I am required to write a CAML Query to ...
0
votes
1answer
121 views

Embedding full page html applications into SharePoint 2019 modern

I am working on a project where client has SharePoint 2019 on premises installed and setup. They are using the modern UI. In addition, they have certain HTML built up full page applications and they ...
0
votes
1answer
27 views

Issue with Date Range when adding Events Web Part?

I am new to Sharepoint and am putting together a site for our internal users. I am wanting to add an events web part that will show upcoming events and internal birthdays. When adding this i am able ...
1
vote
2answers
142 views

Can we display Audit Logs or User's Activity in user friendly format in SharePoint Online (2013) Web Part

We have a requirement, where we have to show the user's activity in graphical format. What actions user has performed on any SharePoint Online Site and when? If user post/edit comment, like, rate on ...
3
votes
1answer
134 views

Difference between ViewsLastMonths1, ViewsLastMonths2 and ViewsLastMonths3

I'm working with the popularity trends web part and would like to display the number of visits/unique users per item. As of right now I have ViewsLastMonths1 and ViewsLastMonths1Unique displayed. ...
0
votes
3answers
109 views

Issues with loading jQuery libraries within O365 SharePoint WebPart

We have a webpart that relies heavily on jQuery to grab data from our SharePoint lists and render them on a page. This webpart includes links to three additional libraries that contain functions and ...
0
votes
1answer
30 views

Content Search Webpart missing “new” Items from List Query

I've created a Content Search WebPart on my SharePoint 2016 site page, and it's missing items from the list which have the "new" tag on them, meaning they were newly created. The following is what my ...
0
votes
0answers
171 views

SharePoint Online - Modern List View Web Part forms

I have a modern list and I want to surface it on a communication site using the modern list view web part. All is fine until I click one of the items on that list. It redirects me into a full screen ...
0
votes
3answers
11k views

create a web part to show members of a group

I am trying to create a web part which shows a list of all members of a specific sharepoint group. One of the columns of the list must be SPFieldType.User. Do I need to create a SPList? When do I need ...
1
vote
1answer
537 views

Can we dynamically link the “People” modern web part inside with a sharepoint group

I have created a new modern page inside our sharepoint online classic team site. and inside the modern page, i have added the "People" web part,as follow:- Where inside this web part i can manually ...
0
votes
1answer
20 views

Sharepoint 2010 Word Webparts

I have a document library with a couple of Word docs with Webparts in them. Each pull a hand full of field data from a Sharepoint list. One of the Word Docs is working fine and getting populated with ...
0
votes
1answer
30 views

Cannot delete the App added in Site Contents

We added a SPFX App in a SharePoint 2019 on-premise environment but somehow got an error. The problem is we cannot remove the app from the Site Contents. What possibly is the cause and how can we ...
3
votes
2answers
5k views

How to center align a web part

I am trying to center align the announcements web part on my Sharepoint 2010 page, everything I try to do just centers the text, not the web part. Is it even possible to change the alignment from left ...