none
Custom Field Type and HTML Encoding RRS feed

  • Question

  •  This is driving my nuts.

    I have a custom field type whose output I want to display as HTML.

    The definition is thus, but it's always showing up as HTML encoded. Any ideas why?

    <?

    xmlversion="1.0"encoding="utf-8"?>

    <

    FieldTypes>

      <

    FieldType>

        <

    FieldName="TypeName">...</Field>

        <

    FieldName="ParentType">Note</Field>

        <

    FieldName="TypeDisplayName">...</Field>

        <

    FieldName="TypeShortDescription">...</Field>

        <

    FieldName="UserCreatable">FALSE</Field>

        <

    FieldName="Sortable">FALSE</Field>

        <

    FieldName="AllowBaseTypeRendering">TRUE</Field>

        <

    FieldName="Filterable">FALSE</Field>

        <

    FieldName="FieldTypeClass">...</Field>

        <

    RenderPatternName="DisplayPattern">

            <

    ColumnHTMLEncode="FALSE"/>

        </

    RenderPattern>

      </

    FieldType>

    </

    FieldTypes>

    Thursday, September 13, 2012 11:45 PM

Answers

  • I figured it out. Instead of using:

    <Column HTMLEncode="FALSE"/>

    I had to use:

    <Column/>

    Apparently having ANY value for HTMLEncode makes SharePoint treat the column as HTMLEncode="TRUE". Strange.

    Tuesday, September 18, 2012 10:39 PM

All replies

  • Hi Colin,

    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.

    Thanks,

    Entan Ming

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contacttnmff@microsoft.com.


    Entan Ming

    TechNet Community Support

    Friday, September 14, 2012 7:22 AM
    Moderator
  • I figured it out. Instead of using:

    <Column HTMLEncode="FALSE"/>

    I had to use:

    <Column/>

    Apparently having ANY value for HTMLEncode makes SharePoint treat the column as HTMLEncode="TRUE". Strange.

    Tuesday, September 18, 2012 10:39 PM