I want to implement the @tag user functionality in the conversation (comment section)

Hello,

I want to implement the @tag user functionality in the conversation (comment section). I am new to Appian. Can you please help me with this?

  Discussion posts and replies are publicly visible

Parents
  • If you're thinking of the @tag style functionality that exists in, for example, this discussion forum, then there isn't an out-of-the-box method for this. You could so something like this (it's a bit basic but may give you an idea):

    a!localVariables(
      local!users: {
        "A Aardvark",
        "B Bat",
        "C Cheetah",
        "D Dingo",
        "E Elephant"
      },
      {
        a!paragraphField(
          refreshAfter: "KEYPRESS",
          label: "Notes",
          value: ri!paragraphText,
          saveInto: { ri!paragraphText }
        ),
        a!buttonArrayLayout(
          align: "START",
          buttons: {
            a!buttonWidget(
              label: "Refesh to substitue @ for list of users",
              icon: "REFRESH",
              showWhen: fn!find("@", ri!paragraphText) > 0,
              saveInto: {
                a!save(
                  ri!paragraphText,
                  substitute(
                    ri!paragraphText,
                    "@",
                    fn!joinarray(local!users, "|")
                  )
                )
              }
            )
          }
        )
      }
    )

Reply
  • If you're thinking of the @tag style functionality that exists in, for example, this discussion forum, then there isn't an out-of-the-box method for this. You could so something like this (it's a bit basic but may give you an idea):

    a!localVariables(
      local!users: {
        "A Aardvark",
        "B Bat",
        "C Cheetah",
        "D Dingo",
        "E Elephant"
      },
      {
        a!paragraphField(
          refreshAfter: "KEYPRESS",
          label: "Notes",
          value: ri!paragraphText,
          saveInto: { ri!paragraphText }
        ),
        a!buttonArrayLayout(
          align: "START",
          buttons: {
            a!buttonWidget(
              label: "Refesh to substitue @ for list of users",
              icon: "REFRESH",
              showWhen: fn!find("@", ri!paragraphText) > 0,
              saveInto: {
                a!save(
                  ri!paragraphText,
                  substitute(
                    ri!paragraphText,
                    "@",
                    fn!joinarray(local!users, "|")
                  )
                )
              }
            )
          }
        )
      }
    )

Children
No Data