Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 16th, 2012  |  syntax: None  |  size: 0.61 KB  |  hits: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Sharepoint 2010: How to set default value for a lookup column (without InfoPath forms)
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  4.   <Field
  5.        ID="{a5a8622d-df8d-4988-acd4-4645081d16fe}"
  6.        Type="Lookup"
  7.        AllowDeletion="FALSE"
  8.        Description="Data Centre lookup"
  9.        List="Lists/DataCentres"
  10.        ShowField="Title"
  11.        FillInChoice="TRUE"
  12.        Name="NewServer Datacentre"      
  13.        DisplayName="Data Centre"      
  14.        Group="Data centre">
  15.     <Default>1;#FirstDataCenter</Default>
  16.   </Field>
  17. </Elements>
  18.        
  19. <DefaultFormula>