The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [spfx-extensions]

SharePoint Framework Extensions let developers extend the user experience of SharePoint, providing ways to customize more facets of the SharePoint experience including notification areas, the toolbars of SharePoint, and the views of list data.

74 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
274 views

Automatically deploy SPFx app on new site collections in SharePoint 2019

I have SPFx app that contains an Application Customizer. I would like to have this app either a) deployed tenant wide or b) automatically added to a site collection when it is created For a) there ...
6
votes
1answer
1k views

Detect navigation change in SPFX Application customizer

I have a SPFX customizer that displays a banner in the topPlaceholder. When the page loads, if it's a list, then it performs a calculation and then displays the banner. When I move from one library ...
5
votes
0answers
204 views

SPFX Getting Sharepoint Online Modern Page ListItem Icon Programatically

I'm trying to get Modern Page ListItem icon path for some implementation. I understand that for SharePoint OnPrem / Online Classic, it will be located under /_layouts/15/images/<<icon_filename&...
5
votes
0answers
397 views

SPFx Extensions - popup “loading debug scripts” does not appear in a list

I built the application as described in this tutorial The popup appears on the site, but does not appear in the list of this site. Did anyone have a problem of this type? This path works: /sites/...
4
votes
0answers
48 views

When navigating from one folder to another, the navigatedEvent doesn't fire in SPFx Extension

I have some logic based on which folder User is in. But it fails as when I navigates between the folder the navigatedEvent is not firing. Go to Root Folder add some console and then navigate to any ...
4
votes
0answers
130 views

Application Customizers no longer working on dev sites

My Application Customizers have stopped working on "Development" site templates on my developer tenancy. I get the following warning in the browser developer tools. Invalid location: Extension....
3
votes
1answer
544 views

What is the correct way to create a custom action using REST API in SharePoint Online?

I'm trying to use Microsoft Flow and the Send an HTTP request to SharePoint action to deploy an SPFx application customizer to a modern team site. I'm able to use the /_api/Site/UserCustomActions ...
3
votes
0answers
627 views

SPFx: Customize field behavior similar to JSLink in classic list forms

We use jslink on the field to customize the UI and behavior of fields on classic SharePoint forms and list views (cascading, colors etc.). How can we make this work in the Sharepoint modern experience ...
3
votes
1answer
113 views

SharePoint Framework Extension 'Invalid Package' error

I am currently working on a SPFx extension to add JavaScript on all modern pages. I am following Chris O'Brien's blog to create this. I was able to create and debug it but when I package it up and ...
2
votes
1answer
45 views

Spfx extension disappears from page

I have created a spfx extension for my communication site, it is working perfectly when page is reloaded. When I click on search bar on the page then it takes me to the search page and when I return ...
2
votes
0answers
187 views

Sharepoint Extension ListView CommandSet - not showing

I created a site page and then inside that I added a List webpart, and then choose the list I wanted. Then I put the link of that page in my extension on pageUrl in serve.json. But the extension is ...
2
votes
1answer
38 views

Trouble getting SPFx up and running on Ubuntu

I'm having trouble getting SPFx up and running on Ubuntu. I'm using the following commands sudo apt-get install nodejs -y sudo apt-get update -y sudo apt-get install build-essential -y sudo npm ...
2
votes
0answers
487 views

Using Custom JS in SPFX (SharePoint Online Modern Sites)

I have created a footer using custom js which fetches all the terms inside the termstore and displays it in the footer for the page and I have referenced the custom js and css files in the custom ...
2
votes
1answer
487 views

Display SPFx Application Extension differently in Read/Edit mode of a Site Page

Question: Is there a utility built into SPFx or a React library to change what to render based on if the page is in read or edit mode? Or more exactly, a way to switch the rendering when switching ...
2
votes
1answer
297 views

SPFx Extension doesn't reload after site search

I have an application customizer extension loading content into the Top Place Holder. When performing a "More Results" site search the page slides over to a search detail screen. When I exit the ...
2
votes
0answers
327 views

SPFX Extension Field Customizer onRenderCell calling base method

Currently i'm implementing field customizer to update document library list item icon. I updated Field XML Schema definition through CSOM. It's working well. But for certain condition, I need to show ...
1
vote
1answer
34 views

How to install List view command set extension in a site collection after deploying it to app catalog using CSOM?

I have created a ListView command set extension using SPFx and upload it in the app catalog. Now I want to install this extension for only particular sites. I tried adding it as a custom action but ...
1
vote
1answer
41 views

How to Print a Document from the Modern Library in SharePoint Online?

I have a certain use case of being able to print a document directly from the modern library using a button. Almost a one click solution. I had a quick look around and found ways to print a modern ...
1
vote
0answers
21 views

Isolated extensions

Since 1.8 it is possible to make web parts isolated, https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/isolated-web-parts. I wonder if there is any way to make an extension isolated ...
1
vote
0answers
81 views

SharePoint Modern Custom Footer SPFx Customizer - Multiple scrollbars

We have created a custom footer using SPFx application Customizer to provide information like social media icons, feedback button, site map (html) etc. This is now occupying more than 90% of content ...
1
vote
0answers
42 views

Custom Audience Targeting

I'm doing some research on how to create a custom solution for audience Targeting since there is no build-in support yet. Do anyone have some ideas on how to achieve that? I have already some ideas, ...
1
vote
0answers
36 views

SPFx extensions will work in SharePoint mobile app?

Platform: SharePoint mobile app This question may sounds silly but need a definite answer. I have created multiple SPFx web parts and added them to pages. These are working fine, when I am trying to ...
1
vote
1answer
150 views

SPFX Webpart- “Error initializing application” after refreshing page

SPFX app is created and deployed tenant level. IF it is add to a page at site collection level (ex:https://text.sharepoint.com/sites/ABC) it is working perfectly. If it is added at subsite level (ex:...
1
vote
0answers
32 views

Exclude a few sites from tenant-wide spfx extension deployment

What's the best way to prevent/exclude a few modern sites from getting a tenant-wide extension deployment like a global footer?
1
vote
0answers
79 views

Error in webpart after upgrading to SharePoint Framework 1.8

I have just upgraded to spfx framework version 1.8. When I try to add the webpart to the page, I get this error Original error: Error loading https://component-id.invalid/f2f8e00f-ef2a-4909-b24a-...
1
vote
1answer
22 views

Add a new button ribon with csom

I'm trying to add a new button in my sharepoint 2013 server via csom because in a few months I'll pass to project online and wsp aren't support anymore by project online So I found this guide on the ...
1
vote
0answers
514 views

SharePoint Modern Filter option for list view webpart

I have some lists and libraries in SharePoint Online and all are already converted in modern experience (new experience). I want to add these as list view web part in SharePoint Modern page and ...
1
vote
1answer
406 views

Can I add more than one SPFX extension - Application Customizer in one solution?

I am trying to add more than one SPFX extension in my solution (Application customizer in this case - one for header another for footer) but after deployment I only see one extension in my site. Am I ...
1
vote
1answer
241 views

Using Commandbar from Office UI Fabric React v6.47.2 for SP Starter Kit

I am currently refactoring some parts of the SP-Starter kit so as part of this, I am creating new solutions and manually adding code from the starter kit over to my solutions. Since I am creating ...
1
vote
0answers
200 views

SPFx Field Customizer deployment: main js not loaded from CDN in SharePoint Online

I try to deploy my first Field Customizer app to a SharePoint online tenant. Tried several things, without CDN and with bundled assets, now using a CDN (which I previously configured with the ...
1
vote
1answer
218 views

How to find a list or log of all site collections with SPFX extension deployed?

We deployed a spfx extension (Add-PnPCustomAction Location "ClientSideExtension.ApplicationCustomizer" ) to multiple site collections manually, is there a way to use powershell to pull extensions and ...
1
vote
1answer
390 views

Application Customizer scope

Application Customizer extensions are supported with Site, Web, and List scopes. You can control the scope by deciding where or how the Application Customizer is registered in your SharePoint tenant. ...
1
vote
0answers
80 views

How can I dynamically add a menu from a SP list on a modern UI site using extensions

I would like to build a custom menu in Modern UI site. The menu data should be coming from a SharePoint list. I have tried using Application Customizer but no luck as yet on how to retrieve the ...
1
vote
0answers
103 views

Can I override the default communication / Team Site menu (SPFX)

I know I can use application customiser to add top and bottom placeholders to the new modern pages. But I'd prefer to use the same existing menu(OTB) but change the datasource to come from a ...
1
vote
0answers
222 views

SPFx section layouts

Currently I have an issue building an SPFx solution where I'd like to create a two-column proportional section that is full-width in a modern page. With the tools currently available to me, all I can ...
1
vote
1answer
599 views

SharePoint Online Custom modern page Footer using Application Customizer

We are creating a custom footer though SPFx Application Customizer for modern sharepoint pages. But our requirement on the Footer is to show the footer with a increased height. Once we deployed the ...
1
vote
1answer
26 views

What is the timeline to fix the known bug with list and library extension support in the classic experience?

I have a working SharePoint Framework extension but I need it to work across 200 classic sites that use the modern library experience. However, according to the overview for extensions: There is ...
1
vote
1answer
372 views

sharepoint framework extensions: sorry something went wrong

I am trying to learn SharePoint Framework Extensions and this is my first try. I created an application customer following the example in pluralsight. When I try to add the app, I get the error: Sorry,...
0
votes
0answers
14 views

SPFx Command Set on a subset of document libraries

I am working on a scenario where I have multiple document libraries and I would like to enable a Command Set button for custom approval only on a subset of those libraries, so effectively have 2 types ...
0
votes
0answers
34 views

Save Search History with custom search bar in modern page

I need a help in saving the search history for custom search in SharePoint modern page. I have added the Enterprise Custom Search but i am quit lost to enable or add this feature to spfx to save the ...
0
votes
1answer
25 views

SharePoint Online Mega Menu

How can I create a Mega Menu using term-sets in SharePoint online? Any help would be appreciated. Thanks in advance.
0
votes
0answers
25 views

SPFX List View Command Set Extension Issue

I have couple of issues in my SPFX Command Sets Extension. Actions Buttons are keep adding in toolbar on list item selection. I have added two different Custom Action(with same command Extension, but ...
0
votes
1answer
29 views

Custom download link sharepoint Modern library

I have been asked if we can create a custom download link on a SharePoint Modern library, replacing the existing one, which saves the file with a name made from file metadata. I am assuming that this ...
0
votes
0answers
11 views

SharePoint extension not loading

I have created a sharepoint extension to load css on site using private cdn. I am able to add it on site using Add-PnpApp. However, when i try to Add-PnpCustomAction on site, it does add on site but ...
0
votes
0answers
21 views

SPFx Solution has a warning stopping production builds has anyone seen it before?

I have been supporting an SPFx solution and I am required to make a small change however it will no longer build. I have tried pulling the last version back down from our repository but it has the ...
0
votes
1answer
89 views

SPFX extension placeholder for search bar

I am trying to add some html elements like radio button below my search bar in communication site i.e. to a modern page using spfx extesion. So initially i tried to do it using javascript by just ...
0
votes
0answers
39 views

Sharepoint Online cross site lookup schema.xml for field extension

I try to create a cross site Lookup field extension for Sharepoint Online. The Field extention is working perfectly, as long as both lists are at the same Website but I need it to work cross site. ...
0
votes
1answer
187 views

SPFX open new list item using modal dialog

The code below opens a new item in Iframe/modal dialog. But when the user saves or closes the modal form i would like it to be closed and not redirected to any other page. Is there any way I can ...
0
votes
1answer
135 views

Unable to Load CSS from the style library using SPFx Extension

I want to load the CSS file from Style Library of the site. I have created the SPFx extension of type Application Customizer. The purpose of the CSS loading is to change the UI of the web parts. I ...
0
votes
2answers
194 views

Display Rich Text in SharePoint Online

I am trying to display the rich text in a list item . I tried using the JSON formating, but it does not seem to have any support for "Enhanced rich text". The txtcontent converts the rich text to ...