2003 (23)

SharePoint: Custom Field Type for MultiLine text

When you add a custom field type that can hold more than the 255 characters you can't use a field of type SPFieldText because it has a max length of 255 characters.

An obvious candidate is to use the field type SPFieldMultiLineText. No problems so far. But... in your custom version of the fldtypes.xml file (for example fldtypes_mytypes.xml) you have to define your parent type of the custom field. You would expect a parent type named MultiLineText, but no, that would be too obvious. It should be Note. Not documented, such a pity...

18 Comments

Do you know the 'parenttype' values for the other field types? I have been looking everywhere for a definitive list and cannot find one anywhere. Also, is it possible to create your own custom field type from a custom control instead of a standard sharepoint control?

-----------------------------------------------------------
"Dental packages in Costa Rica include all costs like X-ray, prosthesis, and so on., on the clinic, as well as the dentist's costs, and however they're 50-70% less expensive than anything you will locate within the US, UK, Canada."

The very heart of your writing while appearing reasonable originally, did not settle correctly with me personally immediately after some time. Someplace throughout the sentences you actually managed to create me a believer but only for a short while. I nevertheless have got a issue together with your leaps in logic and you may do nicely to fill in those breaks. For those who in fact can accomplish that, I could surely be fascinated.