navtej_dhillon
asked on
Sharepoint 2007 page layout adding RichHMTL field
Hi,
I have created a new page layout from my custom content type and custom site columns.
Problem is with one of the site columns whose type is "RICHHTML". I have added this site column on my layout, but whenever i click on this clumn in EDIT mode to insert some text, it gives javascript error" INVALID SOURCE HTML".
Then i added an OOB site column "Page Content" within this custom content type and placed this site column just under my custom RICHHTML column.
OOB "PAge Content" column works perfectly.NO JS Error,but my custom column still gives the same js error.
I have crosscheked schema xml of both site columns and both seems same.
Strange thing is that this custom site column works in "Edit Properties" of page list item.
SCEHMA:
<Field ID="{C3FE73A1-C2EE-4fd7-BE C3-C892F56 24A2F}" Name="POCPageContent" StaticName="POCPageContent " SourceID="http://schemas.microsoft.com/sharepoint/v3" Group="Agilent POC(WSS IT)" DisplayName="POC Page Content" Type="HTML" Required="FALSE" Sealed="TRUE" RichText="TRUE" RichTextMode="FullHtml" ColName="ntext6" RowOrdinal="0" />
I have created a new page layout from my custom content type and custom site columns.
Problem is with one of the site columns whose type is "RICHHTML". I have added this site column on my layout, but whenever i click on this clumn in EDIT mode to insert some text, it gives javascript error" INVALID SOURCE HTML".
Then i added an OOB site column "Page Content" within this custom content type and placed this site column just under my custom RICHHTML column.
OOB "PAge Content" column works perfectly.NO JS Error,but my custom column still gives the same js error.
I have crosscheked schema xml of both site columns and both seems same.
Strange thing is that this custom site column works in "Edit Properties" of page list item.
SCEHMA:
<Field ID="{C3FE73A1-C2EE-4fd7-BE
ASKER
No Rajendra it doesn't work. This seems like some sharepoint bug that note type rich text fields do not work properly on page layouts, though they work perfectly on list items.
I page layouts these fields are treated as simple text boxes and any formatting done within these NOTE fields will render as HTML text e.g. <DIV>ABC 123 <strong>Hello</strong></DI V>, this will be the ouput on screen i.e. the complete formatting is treated as text instead of html.
Let me know if you know any other workarounds
I page layouts these fields are treated as simple text boxes and any formatting done within these NOTE fields will render as HTML text e.g. <DIV>ABC 123 <strong>Hello</strong></DI
Let me know if you know any other workarounds
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
Try converting field xml tag - Type="Note".
----
Rajendra