Skip to Content
Author's profile photo Jerry Wang

Formatted Text Edit in CRM and Cloud for Customer

Formatted Text Edit is supported both in CRM and Cloud for Customer ( starting from 1702 according to blog What’s New in 1702 SAP Hybris Cloud for Customer – Responsive UI.

Formatted Text Edit in CRM

Sometimes when you create new button in Note assignment block:
The Formatted Text Edit control is available, since you can see various buttons in toolbar now.
However when you have chosen one Text Type from drop down list, the Formatted Text Edit control is gone, instead a pure Text Edit field is displayed.
The reason is simply because the Formatted edit function for the given text type is not enabled in customizing, which could be done via SPRO->Basic Functions->Text Management->Define Text Format: create a new entry for the text type and mark the checkbox “Formatted”:
After that the Formatted Text Editor is back:
Take the rich text I maintained in above for example,when you open the page next time, as its name means, you could observe the formatted text is read from database by function module READ_TEXT.

Formatted Text Edit in C4C

I am asked by partners why Formatted Text edit is enabled in some tenant while disabled in some others.
Take the Product Tab in Sales Quote TI for example:
There are two “duplicate” Text Edit controls, value of one is bound to model field “text” and the other with “FormattedText”:
In the runtime both the pure text and formatted text are returned from ABAP backend, the HTTP response could be monitored in Chrome development tool:
The flags to control which of them should be visible in the runtime are IsItemNotesPlainTextVisible and IsItemNotesFormattedTextVisible accordingly.
This is the reason why you could observe the different behavior in different tenant in the runtime:
For sure these flags are determined by BC scoping in backend:

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Chattrapol Khamchuang
      Chattrapol Khamchuang

      Thank you Jerry Wang Great post.


      Do you have any experience in developing Adobe Form in C4C (using Adobe Life Cycle Designer), where the form itself containing the followings?

      • formatted text
      • content of attachment e.g. photo

      This would be a great article to write if you could contribute as I figure a lot of us out here would benefit from that. Thank you in advance!



      Author's profile photo Dhruvin Mehta
      Dhruvin Mehta


      You can bind the text to ur field.

      var tmp = txtContentValue.value.exData.saveXML("pretty");
      tmp = tmp.replace(/(font-family:|font-size):.+?;/g,"");
      tmp = tmp.replace(/(font-family:|font-size):.+?"/g,"\"");
      tmp = tmp.replace(/font-\w*:.*?;/g,"");

      put this code in ALD in order to remove different Fonts which user has put.

      Author's profile photo Tobias Träger
      Tobias Träger

      Hi There,

      why does it seem that on some edges of C4C everything is prepared like described in this blog post, but there are no soping options?

      Example: Visit In Cloud Application Studio you can see, that there are two notes fields prepared already, 1 with formatting one without.

      With client inspector you can even change the necessary controll parameter (like in your screenshots), so that the default note field is displayed with a formatting editor.

      However: No Scoping Option to enable this for the visits. Also in Cloud Application Studio it looks like there is this control parameter, but it is not connected to anything on database lvl and therefore always defaults to false.


      Also: How can we properly embedd such a formatted text field in i.E. a PDF Summary with Lifecycle Designer? The Richtext fields of lifecycle desiner do not work for certain formatting options for C4C fields. i.E. Lists with bulletpoints, Lists with Numbers