Skip to main content
June 11, 2024
Question

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

  • June 11, 2024
  • 4 replies
  • 0 views

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?

4 replies

stefanhelzle0001
Brainy
June 11, 2024
stewart.burchell
June 11, 2024

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, "|")
              )
            )
          }
        )
      }
    )
  }
)

konduruc733182
June 11, 2024
I want to implement the @tag user functionality in the conversation (comment section)

When you say functionality, do you expect the tagged users to receive any emails or update regarding that mention? 

June 12, 2024

Hello Konduru,
Not really requirement from business to send any notification on email we just wanted to tag  user using the @ symbol as we can do it on social media like Linked In