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.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

Spfx extension : Uncaught TypeError: Cannot set property 'innerText' of undefined

I am trying to change Save button name to Submit using below code but it does not work sometimes if I do load page twice below script throw error. My Script having JS is added in my Site Assets ...
0
votes
1answer
28 views

Customizing Top navbar in SharePoint online

I am new to SharePoint and I need to add icon to the top navigation bar like profile pic of the user and notification bell with styling. I tried with edit option but it supports only emoji and text ...
0
votes
0answers
11 views

SPFX List View Command Set Extension Sub Menu

Is it possible to add your own Sub-Menus when creating a List View Command Set Extension in the SharePoint Framework? I would like to have something like: Help -Contact Support -Submit a Ticket I ...
0
votes
1answer
24 views

SPfx Client Side assets relative url image in Jquery

How do I reference an image which is included inside clientsideassets? I was successful in showing the image when I use below option when embedding require inside the img src.: But issue is when ...
0
votes
1answer
44 views

Rename Save button to Submit in Modern Ui NewformAspx

i am trying to change button name from Save to Submit using extension but its not working below is my code let newbutton: any = document.getElementsByClassName("ReactClientFormSection")[1] ||...
0
votes
0answers
7 views

SPFX Application customizer is not working after deployment

I have an custom application customizer. When I run gulp serve it is working fine. But after deployment it is not working. I have added element.xml. But don't why is it not working?
0
votes
0answers
15 views

How to open the “start flow” panel from a field customizer?

My objective is to start a flow for a selected document by clicking on a button which is rendered using a field customizer SPFx extension. I know this is possible by applying JSON column formatting, ...
1
vote
0answers
15 views

What's the pros/cons of updating vs not updating version number on SPFx webparts or customizations?

In SPFx development, what is the benefits or disadvantages of updating or not updating the version number when updating in the app catalogue? The best practice appears to be to update it to something ...
0
votes
1answer
17 views

Move using spfx extension using getFileByID

i am trying below to move file from source to destination but always getting GUID as undefined if (event.selectedRows.length > 0) { // Check the selected rows event.selectedRows....
0
votes
1answer
26 views

command set extension not visible in Ie11

Hi i created spfx command set extension but its not visible in IE11 other browser is visible and working. Used import "@pnp/polyfill-ie11"; as well but no luck , do i missing any ...
1
vote
0answers
18 views

How does updating SPFx webparts/extensions work between tenant wide/non-tenant wide deployment models?

I am trying to understand the difference between deploying spfx customizations between tenant wide and non tenant wide (and differences when updating/not updating the version number). Per my current ...
0
votes
0answers
23 views

How to detect what the site template is in SPFx?

In SPFx modern sites, how can I detect what site template it is? In a shared tenant environment, I want to be able to be able to deploy them tenant wide, but disable them on certain sites (that are ...
0
votes
1answer
17 views

How to set up SPFx customizations on a shared tenant?

I have a tenant thats shared with multiple regions from the same company. Lets say region A, B, C. Each one is doing their own customizations but its all on the same tenant. And we are following the ...
0
votes
1answer
19 views

How to update SPFx extension instances tenant wide automatically?

In SPFx, I deployed a listviewcommandset extension to add a context menu option to list items. After adding to app catalogue, I had to manually add the app to the site. And then to update it, I had to ...
0
votes
1answer
48 views

Show or hide SPFx extension based on user permissions

I like to show or hide extension as per user permission in SPFx ,suppose if user present in SP-group extension is visible or hide it @override public onListViewUpdated(event: ...
1
vote
1answer
41 views

Show Loader in Spfx extension

I am working on requirement where i am moving document from Library 1 to Library 2 below goes the code , everything working fine but once i click it take some time to move document , i like to show ...
0
votes
2answers
30 views

Spfx Extension Move document

Hi i am trying below code to move document from Documents library to SiteAssets library , but how to make it dynamic so selected document will be move to destination library @override public ...
0
votes
0answers
29 views

Sharepoint Spfx List View command set

I have a requirement to create a List view command set in SharePoint Online(no framework used) for a document set library. My document set has many folders based on year. So , basically I need to ...
0
votes
0answers
24 views

Site Footer is not showing up in mobile devices

We have a publishing site in SharePoint Online and we created a SPFx extension that basically just injects this css: div[class^="simpleFooterContainer-"] { height: 80px; background: #...
0
votes
2answers
22 views

add a custom button Doclib-ribbon SharePoint Online

I would like to add a custom button on the default Document Library Ribbon. You know, like next to 'new','share','automate','myCostumBtn' Any of you guys a good suggestion?
0
votes
1answer
26 views

Random bug with settings menu not loading on SP Online

I'm getting a random bug when my Settings menu (Gear icon in the top right corner) does not appear sometimes on my SP Online site. I found that when it happens I have an error in my console (see below)...
0
votes
0answers
31 views

Export PnP reusable controls from SPFx library component

I am trying to export pnp reusable controls from SPFx library component by following this article: https://www.m365-dev.com/2020/04/23/export-pnp-reusable-controls-from-spfx-library-component/ But ...
0
votes
2answers
35 views

Click Event does not get fired in SPFX Extension in IE 11

I have created one spfx extension of type application customizer. I have attached click event to setting icon span.But when I click on setting icon it does not get fired. This is working fine in ...
1
vote
1answer
64 views

Getting warning messages : Warning - [sass] The local CSS class 'min-chart' is not camelCase and will not be type-safe

I am using third party css in SPFx. When I am building it, SPFx is showing me lots of warning messages : I am using Windows 10 / SPFx 1.11.0. Please let me know how to disable these warning messages. ...
0
votes
1answer
57 views

SPFx extension to redirect user to home page if User doesn't has appropriate permission

I need to develop and deploy SPFx extension on my site where if the user doesn't have to manage permission and if they want to access site pages they will be redirected to the home page. If anyone ...
1
vote
0answers
18 views

Can the onListViewUpdated() method run async?

I need to implement a button that is only visible if the user has edit permissions for an item in a list. Therefore I have to make an async api call in the onListViewUpdated() method, but I does not ...
0
votes
0answers
19 views

Icon of a custom Edit button is always too small

I have implemented a custom button "Edit contract" in the listviewcommand extension. I am passing the base 64 encoded image to iconImageUrl in the manifest.json. But my button icon is always ...
0
votes
0answers
69 views

SPFx Loading Multiple Extensions in One Package

I have been unable to build a SPFx package with multiple application customizer extensions to load. No matter what I do, I can only get the first extension I created to load from the app catalog. I ...
0
votes
2answers
44 views

Can I create new extension placeholders?

I've followed this tutorial to create an extension that displays an alert on top of the page: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/using-page-placeholder-with-...
0
votes
1answer
69 views

Error with “Creating new spfx listed view Command set extension” the command does not appear on Edge when debugging

I created a new SPFx listed View command set extension and change the URL in the serve.json file then debug it and got the following error (in the screenshot): the problem here that the same link ...
0
votes
0answers
32 views

Changes in default Property pane using SPFX

Can we change default property pane using SPFX extension ? like hiding or removing @override public onListViewUpdated(event: IListViewCommandSetListViewUpdatedParameters): void { ...
0
votes
1answer
32 views

How to customize SharePoint main content using SPFX [closed]

I'm using spfx extensions to customize header and footer, but not customize body content or main content of page in sharepoint online.
1
vote
1answer
57 views

SPFX: How to debug an application customizer extension

I am new to spfx and have to write an application customizer that changes the key of a query in the url. I have already implemtend this functionality and now want to test/debug. When I run gulp serve, ...
0
votes
0answers
96 views

Hide Apply retention label using css in modern view

I want to hide Apply retention label from propertpane using css in modern view for specific library. I am trying below code but it is not working: if(Libraryurl=="Documents") { let divs: any = ...
1
vote
1answer
47 views

SPFX context menu command set extension not showing for picture library

I am developing a ContextMenu command set for sharepoint online for my tenant. I developed the program and tested and from localhost it was working as expected. When I deployed the extension and ...
1
vote
1answer
24 views

Add SPFX extension when document is opened in SPO mode

I am looking to add button (highlighted with yellow in the screenshot) in the header when the document is opened in SPO mode. Is it possible through SPFX or any other way in SPO ?
1
vote
1answer
55 views

Application Customizer to hide Save button

I am trying to create the application customizer to hide save and cancel button from Newform.aspx in Modern UI, I tried writing below code but everything getting hide instead of Save button noticed ...
0
votes
1answer
24 views

Extension option Missing in SPFX

i am trying creating extension but not getting extension option only getting webpart
1
vote
0answers
40 views

Refresh the ListView from the SPFx Extension

I have implemented an extension that moves the file to a particular location. everything works fine but once the operation is completed I want to refresh the listView so the file which is moved should ...
0
votes
0answers
23 views

In SPFx, how can i fetch the access Token for a guestUser(preferably using MSAL). Where User access SPO environment using live or microsoft account

i tried with below code using aadTokenProviderFactory in spfx but it fails for the externaluser. this.context.aadTokenProviderFactory.getTokenProvider().then(aadTokenProvider =>{ ...
0
votes
0answers
40 views

tslint and prettier extension conflicts in SP 2019 SPFx prject

I am creating Application Customizer for SharePoint 2019 in SPFx and in my VS Code I have Prettier extension configure In project tslint and prettier conflicts, for example I below configuration in ...
0
votes
1answer
53 views

Start Manual Sharepoint designer workflow using SPFX

Can we create spfx extension or webpart which can initiate workflow on selected items in document library
0
votes
0answers
24 views

SPFx extension placeholder

We have SharePoint 2019 and my designer has make reactjs menu. So I have two question Can we use Reactjs in placeholder place Menu is vertical can it be possible
0
votes
1answer
34 views

Can I combine provider hosted app and spfx app in a single app?

I am building a product which is available in both version of SharePoint online i.e. Modern as well as classic view. I have developed provider hosted app as well as spfx app, now the problem is that ...
1
vote
2answers
60 views

How to inject CSS in modern SharePoint pages using Extensions?

I've followed step-by-step this article on how to inject CSS in modern SharePoint pages using Extensions: https://tahoeninjas.blog/2018/05/08/inject-custom-css-on-sharepoint-modern-pages-using-spfx-...
3
votes
1answer
76 views

SPO updates impact on SPFX components

Does Microsoft guarantees that web part/extensions built using SPFX won't be impacted by SPO updates ? I need to build an application with some pages that will be rich html and consumes API's like ...
0
votes
0answers
28 views

require('sp-init'); require('microsoft-ajax'); require('sp-runtime'); require('sharepoint'); not working for SPFx extensions

i am working with spfx extensions (listview commandbar-set) and need to use the existing js file with JSOM operations. Using @types installed the above typings, refered them in config.json as ...
2
votes
2answers
67 views

SPFx Extension BaseListViewCommandSet

I created a SPFx BaseListViewCommandSet extension. My component puts the status of all selected rows. The update works well. However, when I want to refresh the page (location.reload ();) at the end ...
0
votes
2answers
245 views

Display “marked as final” status for a document in SharePoint Online document library view

There is a feature inside Word, Excel and PowerPoint to mark a document as final. More info here: https://support.microsoft.com/en-us/office/help-prevent-changes-to-a-final-version-of-a-file-b1af610f-...
2
votes
1answer
43 views

I don't want to debug my SPFx ListView Command Extension in production

I have an SPFx solution with a ListView Command Extension. I ran the following to create the .sppkg file for deployment to production: gulp build gulp bundle --ship gulp package-solution --ship I ...

1
2 3 4 5