re u familiar with RenderPattern for custom field type definition


I created a custom field type that inherits from SPFieldMultiLineText. I can display and update the values without problem. But in the display list items allitems view It displays with those crazy characters like this:

<I> <DIV class=ExternalClass50EF9330DBF94CC78D7EC5B2F947897C> <DIV><A href="http://www.google.com/">google</A>&nbsp; sxs</DIV></DIV></I>

Do u know how I can modify my render pattern in order to get rid of those characters and leave only the link google  without the extra tags.

Here is my render pattern:

<RenderPattern Name="DisplayPattern">

      <Switch>

        <Expr>

          <Column />

        </Expr>

        <Case Value="" />

        <Default>

          <HTML><![CDATA[ ^ ]]></HTML>

          <Column HTMLEncode="TRUE" />

        </Default>

      </Switch>

    </RenderPattern>

Thank you


 



Answer this question

re u familiar with RenderPattern for custom field type definition

  • Abdulkadir

    Hi

    Could you please tell me how you used the SPFieldMultiLineText I am trying to create a similar column but the value is not getting updated.

    Thanks

    AK


  • notacoder75455

    i used this code: v3 Creating Custom Field Types
    http://sharethispoint.com/archive/2006/08/07/23.aspx#codetwo

    just replace field text with multiline field and replace the textbox control in ascx with shaepoint:richtext

    let me know if u need more help.

    Thanks.


  • re u familiar with RenderPattern for custom field type definition