Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
From within my (2011 SP1) TBB I need to know when a TextField object is rich text or plain text so I can process the contents differently, but I dont see any simple way to find this out. Is this possible without going into the schema XSD?
You could check to see if the ItemField type is a XhtmlField.
if (itemField is XHtmlField)
// Is Rich Text Field
else if (itemField is TextField)
// Is Text Field
Required, but never shown