Hi, I'm trying applyComponents function on rich text items (such as a!richTe

Hi, I'm trying applyComponents function on rich text items (such as a!richTextItem, a!richTextNumberedList, etc) by applying it on the 'value' of a!richTextField but it doesn't return anything at all. Does applyComponents doesn't work on rich text items?

Below is the snippet of my codes.

OriginalPostID-218581

OriginalPostID-218581

  Discussion posts and replies are publicly visible

Parents
  • @kumaraveln That's true as per my knowledge. There wouldn't be a issue at all, if one component is returned by loopingRichTextItems. Problem is, a!richTextDisplayField() isn't able to understand the format of resultant value when the 'value' attribute is driven by a rule (in association with a!applycomponents()) that returns more than one component in a single iteration, and to be specific, the a!richTextDisplayField() expects FormattedText whereas the a!applycomponents() is returning List of Variant in case of array of arrays.
Reply
  • @kumaraveln That's true as per my knowledge. There wouldn't be a issue at all, if one component is returned by loopingRichTextItems. Problem is, a!richTextDisplayField() isn't able to understand the format of resultant value when the 'value' attribute is driven by a rule (in association with a!applycomponents()) that returns more than one component in a single iteration, and to be specific, the a!richTextDisplayField() expects FormattedText whereas the a!applycomponents() is returning List of Variant in case of array of arrays.
Children
No Data