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
0
votes
1answer
15 views

Changing list column width with Script Editor doesn't break line

I have a webpart that has a list with columns. To change the width of these columns I inserted a Script Editor and used this code: <style> .ms-vh-div[displayname='Beschreibung'] { width: 450px;...
0
votes
1answer
16 views

Modify SharePoint List column width of custom webpart with HTML source

I have a custom webpart called Available seminars: I want to modify the width of certain columns. On the Internet it is written that I have to use <style type='text/css'> .ms-vh-div[...
0
votes
1answer
28 views

Unable to add a webpart on the Default new form page for SharePoint list on SharePoint online teams site

I created a Teams site in SharePoint online. Unable to add a webpart on the Default new form page for SharePoint list on SharePoint online teams site.
0
votes
0answers
29 views

Unused space on SharePoint site

I'm building a searchcenter within SharePoint. I created a searchbar and searchrefiners, but about a quarter of the page (right-side) is not used. Now my searchparts are too wide, thus blacking out ...
1
vote
1answer
17 views

Single Part App Pages in SharePoint Online does not work if user has not the autorisation to modify the page

In a modern SharePoint Site, I have many Sigle Par App Pages. They work well when I am logged with my admin autorisations. But when I test them with a user wich has not the autorisation to modify ...
0
votes
1answer
23 views

List webpart not show all views of list SHP 2010

I have to import so many views of a specific list (200+-) in SharePoint 2010. I add the views to a wiki page with a web part list, but the web part list dropdown "Selected View" in the "Show Views" ...
0
votes
3answers
28 views

How to update a file in a sub folder using jsom

I'm using SharePoint 2013, and I'm trying to make a web part that updates a file's content. I used the script that is offered at this tutorial: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-...
0
votes
1answer
47 views

SPO: Show Autocomplete Filter WP results as Title field values but filtering from another field's value [closed]

I am using an autocomplete filter customized in the HTML Form WP. When a user begins typing the name of a Company (i.e. Title field from the Companies list), all matching results autopopulate as the ...
0
votes
2answers
28 views

Add list web part to content editor table (SharePoint 2013)

Is there a way to add a list web part into one of the cells in a table that exists in a content editor web part?
1
vote
1answer
30 views

Creating an Edit Mode Panel for a Sharepoint Online web part

I have created a part that adds css and JS to my page. I would like to have the part be visible from the editor mode, right now its invisible unless you happen to mouse over it. I've found this ...
0
votes
0answers
28 views

Sharepoint Online web part loads scripts out of order

I am attempting to embed a hubspot form by creating a Sharepoint Online web part. This is the raw hubspot form code with portalId and formId as placeholders. <!--[if lte IE 8]> <script ...
0
votes
1answer
24 views

Calling document.body.innerHTML+= causes all other JS to stop working

I am attempting to make a very simple web part that allows me to add a <script> tag to the bottom of the <body> element. I am in the stage of using gulp serve to test my part in local ...
0
votes
2answers
53 views

Yammer conversation web part in SharePoint online not displaying images in chrome browser

Conversation images not displaying in SharePoint Online "Yammer conversation web part" when using Chrome browser but displaying correctly in Edge. When user click 'View all in Yammer' they get ...
1
vote
1answer
28 views

Remove Web Part Title Underline

How do i remove the underline and hyperlink from a web part title? Specifically i still want the title to appear on this web part, i just don't want it to be a clickable link and i want to remove the ...
1
vote
1answer
19 views

Modern news headlines show file names

I use the news web-part in several sites in our SP, but I get the file names as headlines, instead of the actual headline. I have searched through google several times, but I'm unable to find a ...
0
votes
1answer
21 views

Read Data from Excel file in SharePoint web Part C#

I need to read Excel Data in C# DataTable in my Visual web Part. for this purpose I've uploaded the excel file in a temporary location in a document library, the file upload is successful, now I ...
1
vote
1answer
57 views

How to fix error cannot find module @microsoft/sp-build-web.When trying the sp-dev-ebpart samples

I have been trying to build the https://github.com/SharePoint/sp-dev-fx-webparts I have gone through the instructions and reinstalled and installed but no luck I am now getting the error: Cannot ...
1
vote
1answer
43 views

How to show/hide web part

On a SharePoint page, I have two web parts: One web part displays root Documents folder and another web part on the side is just a text that provides some tips to users. But when a user clicks on any ...
0
votes
1answer
29 views

CSS code to adjust column widths using static name instead of display name

I'm currently using this code to adjust the width of specific columns by referencing the display name: English version: .ms-vh-div[DisplayName = "Recent History"] { width:300px } However, I've ...
0
votes
0answers
8 views

How to get a users from AAD in SPFx by graph to get a rights to sharepoint webpart

Can You please give me code to get a rights for sharepoint to edit or not to edit webpart. I must check permission and give rights or not to edit webpart.
0
votes
0answers
17 views

WebPart form with JS submit preventDefault

I created a web part and generated a form using Javascript. My objective is to handle the submit event. For this I added an eventListener : window.addEventListener("submit", handleFormSubmit); ...
0
votes
2answers
32 views

Retrieve fields, fields type, fields values and column names of a Sharepoint Content Type used in a library using Javascript

I created a library that contains documents in Sharepoint Online. Let's call it myLib. I also created a content type, myCT. My objective is to retrieve informations concerning fields I created in a ...
0
votes
1answer
31 views

Counts for every option Doesn't match up with total count

LEE_MSFT corrected my code below. Code works well but the only problem i have that total item count is 319. But sum of each count is 21(Active),77(Closed),2(Partial),0(Special). Can anyone help me why ...
0
votes
0answers
33 views

Making one promoted link on the page bigger then the rest

I trying to have my SharePoint page appear like below using promoted links. I'm struggling everything I've tried in CSS is designing the tiles the same.
0
votes
0answers
31 views

WebPart zone properties

I used SharePoint Designer to insert the WebPart zone into page and the WebPart only covers %50 of the page, how can I make it to cover %100 of the page. <WebPartPages:WebPartZone id="...
0
votes
1answer
28 views

How to automatically list related pages on Wiki-Pages

A SharePoint page should be among other things used by our developers to store developer documentation. I don't really know much about SharePoint sites yet, but I thought that wiki sites are the best ...
0
votes
1answer
26 views

Count Items based on filters and display them in webpart

Can you please help? I don't know what i am doing wrong here. Also i have column name that has spaces "File Status". How to write that in the code <script type="text/javascript"> var ...
0
votes
2answers
45 views

How to Add Web Part Zone in existing Page

I have a page which has already a web part and I need to add another web part zone. Can you please help me with this?
0
votes
2answers
42 views

SharePoint 2019 - how do I embed custom script

Ok - another seemingly basic function. Once you were able to insert a webpart into a list - add custom script, text, what ever you needed. I am looking how and where I would find this sort of ...
0
votes
1answer
27 views

Sharepoint 2019 - published page does not show web part

We have just moved to SP2019 - we have an on-premise install. Just finished the install and are now looking at the new experience within the new site. I have created a page and have inserted a people ...
0
votes
1answer
26 views

Add a table in Sharepoint Modern Sites?

I'm trying to make a row of 4 buttons, so I want to put them inside a table, all with the same width. But I can't find any web part to put tables. Is there any way to do this?
0
votes
1answer
83 views

Facing error 'Something went wrong Please try again or refresh the page' while adding OOTB custom list web part in Site Page in SharePoint online

I have been facing below error when I try to add custom list web part in Site page in SharePoint online sub Site. Something went wrong Please try again or refresh the page. Any idea about what ...
0
votes
1answer
60 views

Page Viewer Web Part Displays Excel file but not Chart

I am using SharePoint online. On a Wiki Page, I have added a Page Viewer Web Part in order to embed an Excel file. I am using this web part instead of Excel Web Access because not all of my users have ...
1
vote
0answers
21 views

Can I get the content of a Site Page and use it inside my SPFx Web part?

I have a webpart which I want to fill with the HTML of a SitePage.aspx. If the user fills the SitePage with a Title, 3 blocks of text and an image, I wish to be able to use that exact same content ...
0
votes
1answer
41 views

Creating a View for just SharePoint Lists

Is there a way to create a Web Part that would only show lists in SharePoint 365? I know how to add a web part that would show Document Libraries, etc., but I wonder if there a way to just show lists. ...
1
vote
0answers
19 views

Display form WPQ number assignment

Does anyone know how the assignment of the WPQ numbers can be changed? Example: We have a custom new web form with two web parts "ContentEditorWebPart" and a "ListFormWebPart". When the aspx page is ...
0
votes
0answers
32 views

Spfx Web Part - API call sometimes fails to execute

I have a custom web part that uses aadHttpClientFactory to authenticate with AAD and then get data from an API secured with AAD. It works flawlessly most of the time. Periodically, though, it gets ...
0
votes
0answers
14 views

Excel Web Part Disable Cell Selection

I'm trying to display a named item in an Excel Web Part, but it always shows a green box for a cell selection. I've already tried protecting the sheet and preventing access to select cells, and re-...
1
vote
1answer
30 views

webparts using @pnp/js

I am trying to create a sharepoint page that contains a webpart which contains some text and images. I am trying to do this using pnp/js. I have been able to create a page using pnp/js, but I can not ...
0
votes
0answers
22 views

Allow custom script in read-only site

I am managing a SharePoint website in SharePoint online, and I created a custom app using the Modern Script Editor webpart (this one). What I'd like to do is make my site read only, preventing anyone ...
0
votes
2answers
22 views

How to share list depending on the value of field?

I have a list with the Company field, as well as 30 different companies. For them, I need to restrict access depending on the value of the company column. At the moment, I created a page from web ...
0
votes
1answer
41 views

How to get the webpart “Persons”

I want to use the webpart "Persons" on my SharePoint site. Only when I press the Webpart button their is no webpart "Persons". How can I use the webpart Persons? Gr, Peter
0
votes
1answer
52 views

Hide web-parts using JQuery in SharePoint Online

I have a page with multiple web-parts. I have four buttons in a web-part: <div id="buttons"> <div class="gmcButton" id="About GMC">About GMC</div> <div class="gmcButton" ...
0
votes
0answers
12 views

sharepoint 2013 Web part issue when call spweb

I am facing below issue on custom web part. I developed this web part in vs2010 and deployed into SharePoint 2013 and framework version is 3.5. The Web application at http://servename.domain.com:8899/...
0
votes
0answers
28 views

News not appearing in News-Webpart and Sites not appearing in Activity Webpart

Basically what the title says. I can add a news site in my SharePoint 2019 Server, but it will not appear in any of the webparts. It is shared as a news article, it is also readable by all users. I ...
0
votes
1answer
28 views

Is it possible to have external provider-hosted app work with SharePoint Lists effectively?

I have been learning about SharePoint and Provider-Hosted Apps recently. Based on some videos and tutorials, I have seen most having a site with a SPHostURL. I was able to recreate that as well. ...
0
votes
0answers
33 views

Modifying WebPartPage in SharePoint Online changes ContentType property

I am using the SharePoint Online CSOM library to change an ImageLink property in a WebPartPage. I first check-out the page, make any changes, and then check-in the page. When I check-in the page, the ...
0
votes
1answer
24 views

SSOM - How to set a custom property value when adding web part programmatically

I want to set a custom property value when add web part programmatically. This is my code for add web part in page: using (SPLimitedWebPartManager manager = oWeb.GetLimitedWebPartManager(...
0
votes
1answer
41 views

SharePoint Welcome Page Calendar

I have a SharePoint welcome page that leads to new modern team sub sites, kind like a hub or holder for the sub-sites. The welcome page is on an older version it looks like. The heads of the ...
1
vote
0answers
48 views

Constant console errors in SharePoint Online

I just finished building my first SharePoint Online page. Just a simple page with a few standard web parts (image, news, document library, list, events, file embed). Everything seems to work okay (...