Hi everyone
,
I’m trying to implement an @mention feature in a chat system, similar to how Slack or Figma handles mentions.
What I’m trying to achieve
-
When a user types
@in the chat input, a dropdown (Repeating Group) appears -
The dropdown shows collaborators on the current project
-
When a collaborator is clicked:
-
Their username is inserted into the input field
-
The cursor stays in the input so the user can continue typing the message
-
What I’ve done so far
-
The dropdown successfully appears when @is typed -
The Repeating Group correctly shows related collaborators -
I’ve set up a custom state to capture the clicked user
The problem
When I click a user in the dropdown, nothing happens.
The custom state updates correctly, but the selected username is not inserted into the chat input.
Bubble AI suggestion (where I’m stuck)
Bubble AI suggested the following approach:
Set Input Content on
Input chat-message-input
Value:
Input chat-message-input's value
→ :split by "@"
→ :items until # (count - 1)
→ :joined with "@"
+ "@"
+ Current cell's User's UserProfile's full_name_text
+ " "
However, I’m stuck because:
-
I don’t see anywhere in Bubble workflows to “set an input’s value”
-
There doesn’t seem to be a native “Set Input Value” action
-
I’ve also explored regex-based approaches, but those still seem to require directly setting the input’s value, which I don’t know how to do
What I’m looking for
-
Has anyone successfully implemented a Slack‑style or Figma‑style @mention system in Bubble?
-
How do you properly insert the selected username into the input field?
-
Is this done with:
-
Custom states?
-
JavaScript?
-
Plugins?
-
-
A video tutorial, plugin recommendation, or example app would be extremely helpful
I do have a workaround, but I’d really like to do this the “proper” way rather than taking shortcuts.
Thanks in advance ![]()