problem when applying multiple styles to a rich text component

Certified Associate Developer

Hello,

 

My goal is to display a rich text component with both the bold and italics styles. The code below works in the SAIL designer live test view, but when the interface is run in a process, only the italics (EMPHASIS) style displays... Is there a better way to achieve both styles that works in-process? Thanks! (Appian 17.1)

 

a!richTextDisplayField(
              value: a!richTextItem(
                style: "STRONG",
                text: a!richTextItem(
                  style: "EMPHASIS",
                  text: "sample text"
                )
              )
            )

 

SAIL designer:

 

in-process interface:

  Discussion posts and replies are publicly visible

Parents
  • Hi zacharyg0001,
    Apply "EMPHASIS" style for outer richTextItem and "STRONG" style for inner richTextItem. This will resolve your problem. I don't have answer for such behavior but it works. I think we have to pass the style in order as they maintained in description.
    a!richTextDisplayField(
    value: a!richTextItem(
    style: "EMPHASIS",
    text: a!richTextItem(
    style: "STRONG",
    text: "sample text"
    )
    )
    )
Reply
  • Hi zacharyg0001,
    Apply "EMPHASIS" style for outer richTextItem and "STRONG" style for inner richTextItem. This will resolve your problem. I don't have answer for such behavior but it works. I think we have to pass the style in order as they maintained in description.
    a!richTextDisplayField(
    value: a!richTextItem(
    style: "EMPHASIS",
    text: a!richTextItem(
    style: "STRONG",
    text: "sample text"
    )
    )
    )
Children