Skip to main content
Participating Frequently
Jun 11, 2024 11:07 AM UTC
Question

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?

4 replies

stefanhelzle0001
Brainy
Jun 11, 2024 11:58 AM UTC
stewart.burchell
Employee
Jun 11, 2024 3:10 PM UTC

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
Inspiring
Jun 11, 2024 7:18 PM UTC
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? 

Participating Frequently
Jun 12, 2024 7:58 AM UTC

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