Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Using powershell make the SharePoint choice field default value to null
WhatsApp
Vijai Anand Ramalingam
13y
19.3
k
0
0
25
Blog
I have a custom list "cl1" which has a choice field "Choice". The values for the choice field are "A", "B","C" & "D".
If you create a Choice column through UI the default value will be selected as "A".
In this we will be seeing how to change the choice field default value to null using powershell
$
site = Get-
SPSite "
http://serverName:1111/sites/sample
"
$web=$site.Rootweb
$
list = $web.Lists.TryGetList(
"cl1"
)
$
field =
$list.Fields[
"Choice"
]
$field.DefaultValue = $
null
$field.Update()
$list.Update()
Using powershell make the SharePoint choice field default value to null
Up Next
Get Values from Choice Field in SharePoint
Ebook Download
View all
Getting Started with SharePoint Framework Development using TypeScript, PnP JS, and React JS
Read by 4.9k people
Download Now!
Learn
View all
Membership not found