Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to I set a field as enriched text on feature activation?

$
0
0

Am creating a list through feature activation, but one of my fields is being created as a plain text field. Is there a way that I can get this to create the field as an enriched text field through feature activation? That way I won't have to go back in (UI), to manually change it?

I am creating my fields this way...

string strFieldOne = myList.Fields.Add("Field1", SPFieldType.Text, true);
string strFieldTwo = myList.Fields.Add("Field2", SPFieldType.Note, true);
myList.Update();
Right now, Field2 is being created as a plain text, but I want it created as an enriched text field. Any ideas?

Please help



Viewing all articles
Browse latest Browse all 11571

Trending Articles