Display Strikethrough Text

Hi,

Is there a way to display strikethrough text on an interface? I would like to display deleted text with strikethrough when compared two strings. I appreciate any response to this quesiton.

Thanks,

Ram

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    First add Redline plug-in, then use the below code in UIT in Appian.

    a!localVariables(
    local!existingText_txt: "My name is Koushal",
    local!newText_txt: "My friend is Koushal",
    local!comapreTextCode: comparetext(
    local!existingText_txt,
    local!newText_txt
    ),
    a!richTextDisplayField(
    value: a!forEach(
    items: local!comapreTextCode,
    expression: a!match(
    value: fv!item.operation,
    equals: "Add",
    then: a!richTextItem(
    color: rule!IP_utils_getColors("green"),
    text: " " & fv!item.value
    ),
    equals: "Delete",
    then: a!richTextItem(
    color: rule!IP_utils_getColors("red"),
    text: fv!item.value
    ),
    equals: "Same",
    then: a!richTextItem(
    color: rule!IP_utils_getColors("black"),
    text: fv!item.value
    ),
    default: a!richTextItem(text: "")
    )
    )
    )
    )

Children
No Data