How to Add Custom CSS or JavaScript to SharePoint Online Modern Page?

Requirement: Add custom CSS to SharePoint Online modern page. SharePoint Online: How to Inject CSS to a Modern Page? As the script editor web part is not supported in modern SharePoint, Power users often get stuck if they want to change the UI elements through CSS or JavaScript. Luckily, We have SPFx…

Read more

SharePoint Online: Set Current User as Default Value in Person or Group Field

Requirement: Fill the Current user in person or group field (People Picker column) in SharePoint Online list New form. How to Set the Person or Group Field Default Value as Current User in SharePoint Online? I have a list to track travel requests and want to fill some people picker columns to…

Read more

Add a Notification Message in Top Banner of the SharePoint Site using PowerShell

Requirement: Add a message to the top banner area of a SharePoint site collection PowerShell to Add Site Notification Message in SharePoint: After migrating from SharePoint 2013 to SharePoint 2016, we wanted to add a message at the top banner of a migrated site. To Set a notification at the web level,…

Read more

PowerShell to Inject JavaScript or CSS using Custom Action in SharePoint

Requirement: Inject JavaScript or CSS in SharePoint without editing Master Page. PowerShell to Inject JavaScript in SharePoint using Custom Action: Assuming the “ga.js” file is already uploaded to the Site Assets library, here is the PowerShell for JavaScript injection in the SharePoint master page. Insert CSS using Custom Action – PowerShell Similarly,…

Read more

SharePoint Online: PowerShell to Inject JavaScript using Custom Action

Requirement: Inject JavaScript into SharePoint Online using PowerShell. SharePoint Online Inject JavaScript using PowerShell: Let’s insert JavaScript to SharePoint Online using PowerShell without modifying the Master page! This inserts the JavaScript under the ⁣<head> tag. This adds JavaScript to site-wide! If you want to add a piece of JavaScript to a modern…

Read more

How to Reload SharePoint Page Every 60 Seconds Automatically with JavaScript?

Requirement: I was required to reload the Intranet SharePoint site’s home page for a monitoring dashboard every five minutes. Solution: Use this JavaScript placed in a Script editor or content editor web part to refresh a SharePoint page every 60 seconds. Here is how to refresh the current page in SharePoint, step…

Read more

How to Make Attachments Mandatory in SharePoint List?

Requirement: In a SharePoint list, make the attachment required field! Make attachments mandatory in the SharePoint list: While creating a Document library with metadata columns is one option, the requirement is only to make the attachments mandatory in SharePoint list forms. To make attachments mandatory in the SharePoint list, we can use…

Read more