title: How to set default value for a column of content type in Sharepoint
body: <p>i create a content type using feature as below</p>
  
  <pre><code>&lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
    &lt;Field ID ="{4C939423-2090-413d-B241-724D9B66F74B}"
           Name="VersionNumer"
           DisplayName="Version Number"
           Type="Text"
           Required="TRUE"
           Group="CT" &gt;
      &lt;Default&gt;0&lt;/Default&gt;
    &lt;/Field&gt;
  
  
    &lt;Field ID ="{33E51B7A-FEE2-4995-B4BB-9F3F909C1015}"
           Name="DocumentType"
           DisplayName="Document Type"
           Type="Choice"
           Required="TRUE"
           Group="CT"&gt;
      &lt;Default&gt;Other&lt;/Default&gt;
  
      &lt;CHOICES&gt;
        &lt;CHOICE&gt;Document&lt;/CHOICE&gt;
        &lt;CHOICE&gt;Excel&lt;/CHOICE&gt;
        &lt;CHOICE&gt;PowerPoint&lt;/CHOICE&gt;
        &lt;CHOICE&gt;Other&lt;/CHOICE&gt;
      &lt;/CHOICES&gt;
    &lt;/Field&gt;
  
    &lt;ContentType ID="0x0101000728167cd9c94899925ba69c4af6743e"
                 Name="myCT"
                 Group="myCT"
                 Description="myCT"
                 Version="0"&gt;
      &lt;FieldRefs&gt;
        &lt;FieldRef ID="{4C939423-2090-413d-B241-724D9B66F74B}" Name="VersionNumber" DisplayName="Version Number" Required="TRUE" /&gt;
        &lt;FieldRef ID="{33E51B7A-FEE2-4995-B4BB-9F3F909C1015}" Name="DocumentType" DisplayName="Document Type" Required="TRUE"  /&gt;      
      &lt;/FieldRefs&gt;  
    &lt;/ContentType&gt;
  &lt;/Elements&gt;
  </code></pre>
  
  <p>How can i set default value for VersionNumer is 0 and default value for DocumentType is Other? I used default tag but it was not efficent.</p>
  
  <p>And another question, how to force user to input VersionNumer and DocumentType. I used atrtibute required="true" but it was not successful.
  Thanks in advance.</p>