In a SharePoint website I defined a new column that is used in three different content types. Now I want to define a different default value for this column for each content type. Is this possible using the webservice interface of SharePoint? Is it possible at all?
views:
482answers:
2
+3
A:
You cannot set a default value for a column in Sharepoint based on the content type. What you could do though is modify the editform and newform aspx pages of the lists that use the content types / columns and then use JQuery to set the value based on the selected content type.
Colin
2009-06-22 11:19:56
+1 Just wanted to add that you don't have to use JQuery... Regular JavaScript will work just fine for something small like this.
Kit Menke
2009-06-22 16:52:17
+1
A:
Your other option is a custom field where you can run c# code to determine the value of the field based on your particular requirements. Not very light weight to implement however.
Nat
2009-06-22 21:18:30