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

Creating field name programmatically

$
0
0

HI,

I am trying to create a Note field programmatically. I have used the below code:

string fieldtestComments = list.Fields.Add("InserttesterAdjustersCommentsHere", SPFieldType.Note, false);

list.Fields[fieldtestComments].Update();

However, the field name is only taking till "InserttesterAdjustersCommentsHer". Only 32 characters are getting taken. However, I am able to create the same column from UI as "InserttesterAdjustersCommentsHere".

How to fix this?

Thanks


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>