Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Can I restrict a Site-Collumn with the common "Additional Column Settings" which we see in the Browser when I create the Collumn in a Feature in Microsoft Visual Studio? (I would like to create a Single Line of Text Site Collumn with the restriction to just 30 chars)

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">  
  <Field
       ID="{8ed076c2-64cf-4dbf-9f63-002cb5a28567}"
       Name="My Headline"
       DisplayName="My Headline"
       Type="Text"
       Required="FALSE"
       Group="Custom Site Columns">
  </Field>
</Elements>
share|improve this question

1 Answer 1

up vote 0 down vote accepted

add this attribute in Field node

MaxLength="30"
share|improve this answer
    
ok, thank you, I tried to search for a List of all Attributes availabele for those Site Columns. Could you find such one? pls –  superschaf Jul 22 at 14:29
    
Please refer to the following link for details: msdn.microsoft.com/en-us/library/office/… –  Ahmed Masud Jul 23 at 10:15
    
Thank you verry much! –  superschaf Jul 25 at 6:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.