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 top banner area of a SharePoint site collection PowerShell to Add Site Notification Message in SharePoint: After the migration 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

SharePoint Online: How to Set Value and Disable a Field in List New Form?

Requirement: Disable a Field in SharePoint Online List New Form (NewForm.aspx). How to Set Value and Disable a Field in New Form? I had to fill a few field values from the URL query string and disable those fields in SharePoint Online New Form. My URL for New form would like: https://crescent.sharepoint.com/lists/ack/NewForm.aspx?ID=1&DeviceType=Monitor…

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 “ga.js” file is already uploaded to Site Assets library, here is the PowerShell for JavaScript injection in SharePoint master page. Insert CSS using Custom Action – PowerShell Similarly, you can insert…

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: Lets insert JavaScript to SharePoint Online using PowerShell, without modifying the Master page! This inserts the JavaScript under <head> tag

Read more

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

Requirement: For a monitoring dashboard, got a requirement to reload Intranet SharePoint site’s home page for 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 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 attachment mandatory in the SharePoint list we can use simple…

Read more

How to Show Status Message in SharePoint 2013?

Requirement: After the launch of new SharePoint intranet portal, we wanted to display a status message in each page. Solution: Here is the script to display status message using SharePoint Javascript client side object model. and the result of SharePoint 2013 status message: This script can be used in Master pages or…

Read more