Custom field html displays as text

I am converting a custom field from a SharePoint 2007 version to SharePoint 2013. The field works correctly in SP2007. In SP2013 it has the correct information but displays as text instead of html. I have set the "disable-output-escaping" in the
xsl to "yes" but it does not help. Here the xml and xsl data for the field.
<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
  <FieldType>
    <Field Name="TypeName">PriorityIndicator2</Field>
    <Field Name="ParentType">Text</Field>
    <Field Name="TypeDisplayName">Priority Indicator</Field>
    <Field Name="TypeShortDescription">Priority Indicator</Field>
    <Field Name="UserCreatable">TRUE</Field>
    <Field Name="Sortable">TRUE</Field>
    <Field Name="AllowBaseTypeRendering">TRUE</Field>
    <Field Name="Filterable">TRUE</Field>
    <Field Name="FieldTypeClass">Company.WebParts.PriorityIndicator2, $SharePoint.Project.AssemblyFullName$</Field>
    <Field Name="FieldEditorUserControl">/_controltemplates/15/PriorityIndicator2FieldEditor.ascx</Field>
    <Field Name="CAMLRendering">TRUE</Field> 
    <RenderPattern Name="DisplayPattern">
 <Column HTMLEncode="FALSE" />
    </RenderPattern>   
  </FieldType>
</FieldTypes>
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
                xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
                version="1.0"
                exclude-result-prefixes="xsl msxsl ddwrt"
                xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
                xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
                xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                xmlns:SharePoint="Microsoft.SharePoint.WebControls"
                xmlns:ddwrt2="urn:frontpage:internal">
  <xsl:template match="FieldRef[@Name = 'PriorityIndicator2]" mode="Text_body">
    <xsl:param name="thisNode" select="." />
    <span style="background-color:lightgreen;font-weight:bold">
      <xsl:value-of select="$thisNode/@*[name()=current()/@Name]" disable-output-escaping="yes" />
    </span>
  </xsl:template >
</xsl:stylesheet>
Any help would be greatly appreciated.
Luis R. Lebron

Hi,
According to your post, my understanding is that the custom field not render html well.
As you have known, we can use the “disable-output-escaping” to render the html, however, it not works in your environment.
As a workaround, we can use JQuery to render the html, I have made a simple code snippets to achieve this scenario, you can refer to it.
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
var theTDs = $("td[id='SPFieldCustom']");
//console.log(theTDs.html());
TDContent = theTDs.text();
//console.log(TDContent);
theTDs.html(TDContent);
</script>
Note: You should change the id to fit your environment.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support

Similar Messages

  • Remove custom field instead of default text field

    I need  migrate to SharePint 2013 from 2007.
    In SharePoint 2007 List include a custom field.
    Dont use the custom field again,
    I want remove custom field instead of default text field (remain metadata).
    How to do it ?
    Thanks

    Hi ,
    According to your description, my understanding is that you want to migrate SharePoint from 2007 to 2013 with managed metadata column. Is it right?
    If you need to migrate managed metadata columns, you also need to migrate the Managed Metadata Service application. however, when you use this method, only global terms are available but the local terms  are not available.
    So, if you used the local terms for the managed metadata column, I suggest you use a third party tool or manually re-create the column in the destination list.
    There are some articles about migrating managed columns, please take a look at:
    http://sharepointconnoisseur.blogspot.jp/2012/06/migrate-sharepoint-2010-content-with.html
    http://www.metalogix.com/help/Content%20Matrix%20Console/SharePoint%20Edition/002_HowTo/003_MigrationActions/011_CopyTaxonomy.htm
    http://www.quest.com/tv/All-Videos/1749994742001/Migrating-to-SharePoint-Managed-Metadata-Columns-with-Migration-Suite-for-SharePoint/Video/
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Custom fields not displayed inside 'Add. fields' tab of KS01/KS02 tcodes

    Hi Experts,
    I have created a new sub screen 0999 inside program SAPLXKM1 . This subscreen is being called from PBO of screen 0399 / 3399 of SAPLKMA1. During cost center creation (KS01) , one new tab 'Add. fields ' has been added but 0999 screen fields are not being displayed (tab page is blank).
    CALL CUSTOMER-SUBSCREEN custflds INCLUDING 'SAPLXKM1' '0999'.
    Enhancement : COOMKS01.
    Please help what i have missed in this enhancement. Please let me know if there is any step step documentation for the same.
    Thanks,
    Arnab

    Hi
    Please check whether
    1. you have added the custom fields and related texts to the subscreen 0999
    2. you  have written code in function exits for data export and import from screen to screen
    Try passing the values to screen by using the below exits.
    EXIT_SAPLKMA1_001              Flow Logic PBO
    EXIT_SAPLKMA1_002              Flow Logic PAI
    Shiva

  • Custom fields not display in SRM5.5 Basic Data Frame

    Hello Everybody,
          I am working on SRM5.5 Server which i have to add two custom fields in Basic Data Frame..
         No field is display in basic data frame After I added those fields in INCL_EEW_PD_ITEM_CSF_SC and INCL_EEW_PD_ITEM_CSF.
        I added these fields by help of 672960 OSS notes..
       Add also when i execute the program BBP_DYNPROS_GENERATE where I entered the program name as SAPLBBP_PDH_CUF and execute but non of them is working fine..
      Is there anything else do i need to display custom fields in basic data frame??
    I have one more question..
      When you logon through SAPGUI and goto BBPSC01 t.code where you see lots of fields in basic data frame such as unloading point and all.. But those all fields does not display when you logon through WebURL..
      I checked is there any BAdi such CUF or Screenvarient or some Badi has been actived but non of the Badi has been implemented..
      To display all the fields which are display in GUI Mode also should display in URL..
      To bring this functionality , What do i need to do?
      I appreciate if you answer these questions..
    Thanks,
    John.

    Hi Disha,
    We are trying to add custom fields to the Shopping Cart Header. We are using SRM 5.0. We added the fields to the structures "INCL_EEW_PD_HEADER_CSF_SC" & "INCL_EEW_PD_HEADER_CSF".  We are able to see the custom fields. But the issue is , we are able to see the custom fields in the Shopping Cart one step shop scenario. Whereas when we run the wizard which is a 3 step scenario, we are not able to see the custom fields.
    Technically speaking, the custom fields are visible for the ITS BBPSC01 & BBPSC03 , where as these custom fields are not visible for the ITS BBPSC02.
    Please let me know, if we need to append the fields to some other structure to be able to see them in the Shopping cart wizard also.
    I will be gald to provide any kind of info.
    Thanks in advance...

  • Extract Year (only) from Date Field and Display in Text Field

    I need to extract the year from a user entered date field and display the year in a text field. Can someone help me with the correct script to do this?

    Hi,
    that's quite easy to realize with FormCalc.
    In you date fields exit event add the following code:
    textField1 = Num2Date( Date2Num($.formattedValue, "MM/DD/YYYY"), "YYYY")
    Note: This sample assumes that your date field formats the date with "MM/DD/YYYY". You may have to change the pattern to make it work at your end.

  • If a Custom field is defined as Text in Project Server, but is actualy a number field, is it possible to number format it in a report (BI)?

    The users have defined the field as Text, and now the field contains data, so it is not possible to change the type.
    While including the field in the Report and choosing number format, it is not getting formatted (for example, if I want seperators like a comma for thousand).
    Is it possible?
    Thanks in advance.

    Hi,
    I don't think so you can directly format a text field as number in SSRS.  For doing this first you have to convert your text field into Integer or Decimal (whatever is your requirement) into SQL query.
    Then using SSRS textbox properties you can define the number format also can use the 1000 separator from SSRS then.
    To perform this, I have created a "Test" table with 2 columns only "ProjectName" varchar(50) and ProjectDuration Varchar(9).
    Then using SQL query first I converted ProjectDuration datatype from Varchar to INT using below query
    SELECT     ProjectName, CONVERT(int,ProjectDuration) ProjectDuration
    FROM         Test
    Then using SSRS interface changed the ProjectDuration tect box property like this
    That's all I am getting below desire result
    Hope this helps you and let me know in case have any doubts.
    Thanks !!!
    Sachin Vashishth MCTS

  • How to make a field in custom screen as display field in screen exit

    Hi ,
    I have created a screen exit for CO02 with a field for item text in header level as input field , when value is given and save button is cliked it gets updated in database but the problem is same field shows as input field in CO03 ( display mode ) .
    Code which i have used .
    in PBO
    if sy-tcode = 'CO03'.
    loop at screen .
    if screen-name cs 'SUBSCREEN' or screen-name cs 'RESB-POTX1'.
    ( subscreen - screen name given in screen editor and   resb-potx1 field name given in screen editor )
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    and even i tried in PAI too .....
    if sy-tcode = 'CO01' or sy-tcode = 'CO02'.
    update resb set POTX1 = RESB-POTX1
    where aufnr = i_aufnr.
    elseif sy-tcode = 'CO03'.
    *oop at screen .
    *f screen-name cs 'SUBSCREEN' or screen-name cs 'RESBD-SORTF'.
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    but itshows as input field only ........how to make that custom field as display field in CO03

    HI Andy,
    Try this out.
    FIrst check the sy-dynnr, if it is same as your custom screen number
    in PBO of your custom screen
    if sy-dynnr = 'YOUR_NUMBER' and sy-tcode = 'CS03'.
    loop at screen
    if screen-name = 'YOUR_SCREEN_NAME'
    screen-input = 0.
    modify screen
    endif
    endloop.
    endif.
    if it wont work they try using Tcode SHD0
    Hope this will serve your purpose.
    Regards
    Ramchander Rao.K

  • Displaying Custom field in shopping cart header

    Hi all, I know how to add a field to header and item levels of the shopping cart.
    - In the note 672960 it says 'Note that the header fields cannot be displayed for the shopping cart. If you define fields on the header, they can only be filled in BADIs.'
    However,
    We are able to fill in the name of the shopping cart on the third step, which is also a part of header information. Is there a possibility to add a custom field(the user must be able to fill it) and display it in that screen???

    Hi
    <u>To add custom fields to the shopping cart, please try this process -></u>
    <b>Please refer to these links for details -></b>
    Re: SC header CUF ?
    Re: MAP USer SRM defined fields in backend for PO
    Re: HI SRM experts...
    Custom fields to a Bid Invitation
    Addition of custom fields in Contract and mapping it with the fields in SRM
    urgent help request - How to add custom fields to  header BID.
    Re: Add custom fields to Contract Transaction in SRM 4.0
    Custom Fields
    custom fields in Carry out sourcing screen..
    Custom Fields Not Display In Basic Data In SRM 5.5 Server..
    SC : Extended  Search on Header Customer field
    Re: customer field in 3rd step of shopping cart
    Adding fields in shopping cart
    Custom Field in the header of Shopping Cart
    <b>Please refer to these SAP OSS notes -></b>
    <u>Note 458591 - User-defined fields: Preparation and use
    Note 672960 - User-defined fields 2
    Note 822424 - CUF. Customer fields cannot be changed in the bid
    Note 809630 - Customer field in bid invitation and bid - How does it work?
    Note 809628 - Table like customer fields from bid invitation in bid
    Note 798731 - Bid: Bid Inv. Customer fields not visible
    Note 762984 - SRM40-SUS: Implementation of customer enhancement fields</u>
    <b>Please go through the documentation of following 3 Business Add-Ins using SE18 transaction.</b>
    BBP_BUPA_GET_CUF Customer Fields for Vendor Master Data
    BBP_CUF_BADI-Customer Fields. Call-up of User-Defined Screen
    BBP_CUF_BADI_2-Customer Fields. Use of Standard Table Control
    Hope this definitely help.
    Regards
    - Atul

  • Custom field display as a checkbox in SRM - Shopping Cart

    Hi Friends,
    I added a new field on SRM Screen.
    Field details are as follows
    Field Name : ZZPCARD_ORDER
    Domain     : char_x (<b>Checkbox</b>)
    When I see BASIC DATA screen on Shopping Cart, I am getting this field as a simple character field but <b>NOT</b> as a <b>CHECKBOX</b>. Can anyone help me to display this as CHECKBOX ? FYI,I have tried with different data elements / domain available as checkbox. Customer fields are displayed dynamically in subscreen so it is bit difficult to find field attributes.
    Thanks and Warm Regards.
    Pras Durafe

    Hi
    Pls refer to the following thread for more details
    Custom fields not display in SRM5.5 Basic Data Frame
    Hope it helps.
    Pls reward suitable points.
    Regards
    - Atul

  • Custom field display on PO (me23n)

    Hi, there.
    On me23n screen in ECC60, I see descriptions of plant, material and material group code appear on
    the screen, instead of code value.
    I need to create a custom field on me23n and I need to make description of the custom field appear,
    just like other standard field.
    (The custom field has a custom master table with description ).
    How could I achive this, without creating another custom filed for decsription?
    Please, let me know.
    Thanks...

    Hi
    Pls refer to the following thread for more details
    Custom fields not display in SRM5.5 Basic Data Frame
    Hope it helps.
    Pls reward suitable points.
    Regards
    - Atul

  • Creating Custom fields does not have the option to create as a Note field

    Of course I have a sales VP that wants to be able to see what they are typing instead of having it scroll off the screen as they type (even though once they save the record the data is fully displayed).
    Before I go to customer care is there a way for me to request through support that two custom fields I created as Text (Long) can be changed (or new ones created) behind the scenes as a Note field similar to the Comments field? Note is not an user option when creating a custom field.
    I ucan not just rename the description field in the account record as I am already using that field for comments.
    Thanks,
    Caryn

    It is not possible at this time to create a custom Note field. This is something that is on the On Demand roadmap as a enhancement.

  • Custom field in Edit mode in Sourcing

    Hi,
    We are using Classic scenario. I have to add one custom field in Sourcing. So, I have added the field in Shopping cart. Now the custom field is displaying in surcing cockpit. But we have few PRs which has created through RFC users from ECC. When I am creating sourcing, the PRs which are created in ECC are in Display mode only. But I need my custom field in edit mode to add values in that field. So, Is there any BAdI is there to change the mode of sourcing from Display mode to Edit? It's urgent. If anybody came accross such issue, please let me know.
    Thanks and Regards,
    Nowsath
    Edited by: Nowsath RM on Mar 31, 2008 2:30 AM

    Thanks. But in BBP_CUF_BADI_2, IV_mode field is there in methods MODIFY_INPUT, MODIFY_OUTPUT and MODIFY_MODE_QUOT. Out of which in methods MODIFY_INPUT and MODIFY_OUTPUT, the iv_mode field is import parameter not export parameter. So, you cant change the mode over there. Also in method MODIFY_MODE_QUOT, the iv_mode is as changing parameter. But this method will not trigger when ur creating sourcing. Please correct me if I am wrong...

  • Custom Field in the header of Shopping Cart

    Dear all,
    We have to add a Custom field on the header of the Shopping Cart which will have three values.
    This field has to flow thru the Bid invitation, Contract and the PO ...
    Can anybody provide the technical details of the same ?? Which all are the structures to be changed ?
    Thanks in Advance ...
    Regards,
    Vivek K

    Hi
    To add  custom fields to the shopping cart, please try this process ->
    Please refer to these SAP OSS notes ->
    <u>Note 458591 - User-defined fields: Preparation and use
    Note 672960 - User-defined fields 2
    Note 822424 - CUF. Customer fields cannot be changed in the bid
    Note 809630 - Customer field in bid invitation and bid - How does it work?
    Note 809628 - Table like customer fields from bid invitation in bid
    Note 798731 - Bid: Bid Inv. Customer fields not visible
    Note 762984 - SRM40-SUS: Implementation of customer enhancement fields</u>
    Please go through the documentation of following 3 Business Add-Ins using SE18 transaction.
    BBP_BUPA_GET_CUF Customer Fields for Vendor Master Data
    BBP_CUF_BADI-Customer Fields. Call-up of User-Defined Screen
    BBP_CUF_BADI_2-Customer Fields. Use of Standard Table Control
    Please refer to these links for details ->
    <b>Re: MAP USer SRM defined fields in backend for PO
    Re: HI SRM experts...
    Custom fields to a Bid Invitation
    Addition of custom fields in Contract and mapping it with the fields in SRM
    urgent help request - How to add custom fields to  header BID.
    Re: Add custom fields to Contract Transaction in SRM 4.0
    Custom Fields
    custom fields in Carry out sourcing screen..
    Custom Fields Not Display In Basic Data In SRM 5.5 Server..
    Regards
    - Atul

  • Add fields in "customer fields" at item level

    Hi experts.
    Please i need a help.
    Im using the SAP CRM 5.0 win client.
    I will use the EEWB method to add new fields at the item level (CRMD_CUSTOMER_I). I believe that these fields will appear in the "customer fields" tab, but this tab isnu2019t displayed inside item details.
    Why its can be happen?
    Is some config. missed?
    Thanks in advanced.
    Daniel

    Hi Ratish
    First i wanna thank you for the reponse.
    In fact i didnt execute the EEWB yet.
    My question is, the tab "customer fields" isent displayed inside the item details so after that i run the EEWB and check "item" to add the fields, the tab "customer fields" will be displayed automatically?
    Thanks so much, i have added to you some points.
    regards.

  • Adding Custom Fields in ME53N

    Hi All,
    I need to add a custom field to display data in the Tx. ME53N, "Status" tab.
    Do you know any screen exit or badi for this requirement? I only need dsiplays the field added to the EBAN table.
    Thanks in Advance!
    Regards,
    Martin.

    1. create your custom fields via structure CI_EBANDB.
    2. Use badi ME_PROCESS_REQ_CUST to display custom fields created in  CI_EBANDB
    PS You can find a detailed documentation in badi ME_PROCESS_REQ_CUST thru SE18

Maybe you are looking for

  • RE: Multiple Selection - there is a way

    Hi, There is a way to provide multiple selection (Highlighting) of rows in Array widget. No need to provide toggle field etc. to show selection of a row. You can exactly do what you want in ArrayField widget i.e. using Shift-click and ctrl-click key.

  • Update join view

    1. employees table- emp_id is the primary key 2. department table-dept_id is the primary key. 3. Create or replace View emp_dept AS select e.emp_id, e.last_name, d.dept_id From employees e, department d 4. update emp_dept set last_name = 'munir' wher

  • Upgrade and migration

    Please help me in assessing the time frame for the following upgrades. How long will it take for an upgrade from Designer 6.0 --> Designer 6i Oracle DB 8.1.7 --> Oracle 9i Discover 3.1 --> discovere 4i (9i) Reports 6.0 --> Reports 6i

  • When closing browser looses all my settings and goes back to default on reopening

    I set what I want in options like do not remember history and font size and do not show download window when installed. every time I shut it down and restart it later everything goes back to default.

  • Oracle to SAP, worth it?

    Hello folks , Ive been reading up about all the advice regarding the SAP training/certification and  though there seems no black or white ,Im hoping to get some useful inputs from the experienced folks . I have worked with an IT biggie for 3 years as