Base solution for your next web application
Open Closed

Using "@" to display a list of users in a text field #6508


User avatar
0
AndrewT created

Hi,

We want users to be able to create notes in a text/memo filed and use the syntax "@username of the person they want to alert" so the system will send the note to the people named in the note.

eg @andrewt - You should read this note..

Can you point us to any example for this within aspnetzero?

Thanks,

Andrew


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @andrewt

    There is no similar usage in AspNet Zero. You can cehck the pattern (@username ) with a regex and if there is a username found, you can find the user using UserManager class and send notificaiton to specific user.

  • User Avatar
    0
    AndrewT created

    OK, maybe while the user is typing we can initiate a drop down of users if there is a word starting with "@" and then colour the word "@username" same as what a url would be, or have a list on one side that they can select users to notify which inserts the string in the memo text, and then parse on save to create corresponding emails/alerts.

    If anyone else has any experience/code for that and wishes to share that'd be nice :) .

    Andrew

  • User Avatar
    0
    ismcagdas created
    Support Team

    It seems like no one had a similar experience.