# Mentioning entities in rich text

**URL:** <https://community.fibery.io/t/mentioning-entities-in-rich-text/5094>\
**Category:** Misc\
**Created:** [September 6, 2023, 4:15am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094 "2023-09-06T04:15:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Minh\_Tri\_Do\_Hang](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/minh_tri_do_hang/32/6791_2.png) [@Minh\_Tri\_Do\_Hang](https://community.fibery.io/u/Minh_Tri_Do_Hang)\
**Post date:** [September 6, 2023, 4:15am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/1 "2023-09-06T04:15:35Z")

</div>

any way to count checkbox in rich text ?  
I got periodic entity for each day and in rich text i got a lot of checkbox to checking some several habits  
Ex: 2023-Sep 06 Entity  
 Habit 1: Running 5km pace 5.0  
 Habit 2: Reading 30 pages book…

So with this count checkbox in rich text, at the end of each week i can summary how many times this habit have been done ?

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 6, 2023, 5:37am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/2 "2023-09-06T05:37:17Z")

</div>

If it were possible to count them, what/when would trigger the count, and where would the result be stored?

---

<div class="post-metadata">

**Author:** ![Minh\_Tri\_Do\_Hang](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/minh_tri_do_hang/32/6791_2.png) [@Minh\_Tri\_Do\_Hang](https://community.fibery.io/u/Minh_Tri_Do_Hang)\
**Post date:** [September 7, 2023, 2:38am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/3 "2023-09-07T02:38:02Z")

</div>

do we have way can set template with button  
Ex: Button with embed existed habits entities  
 [[Habit 1: Running]]  
 [[Habit 2: Reading]]  
…  
then we can you formula field to reference count, can we implement like that ? @Chr1sG

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 7, 2023, 5:43am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/4 "2023-09-07T05:43:55Z")

</div>

Sorry, I don’t quite understand what you’re suggesting.

> [@Minh\_Tri\_Do\_Hang](#):
>
> can set template with button

It is possible to use a button automation to populate the contents of a rich text field. Is that what you mean?

---

<div class="post-metadata">

**Author:** ![Minh\_Tri\_Do\_Hang](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/minh_tri_do_hang/32/6791_2.png) [@Minh\_Tri\_Do\_Hang](https://community.fibery.io/u/Minh_Tri_Do_Hang)\
**Post date:** [September 7, 2023, 8:20am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/5 "2023-09-07T08:20:07Z")

</div>

I mean can we embed a specific existed entities to button ?  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/f/fab7f5afca69d01aea6c8e40251da51da9c2005c.png)

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 7, 2023, 8:34am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/6 "2023-09-07T08:34:01Z")

</div>

See here:

> [@Is it possible to mention in comment or doc via script or API?](https://community.fibery.io/t/is-it-possible-to-mention-in-comment-or-doc-via-script-or-api/3203):
>
> I want to mention the assignee via automation script or API is that possible? Greetings Lukas

It covers basically the same thing, except entity mentions use `[[#^` instead of `[[#@`

---

<div class="post-metadata">

**Author:** ![Minh\_Tri\_Do\_Hang](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/minh_tri_do_hang/32/6791_2.png) [@Minh\_Tri\_Do\_Hang](https://community.fibery.io/u/Minh_Tri_Do_Hang)\
**Post date:** [September 7, 2023, 9:17am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/7 "2023-09-07T09:17:56Z")

</div>

Just testing, dont know what i’m missing

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/b/b3ae9fd16774e8619240d04a3b33c69c3c81fe56.png)  
Here’s entity ID: 2cb29a60-4d57-11ee-bc0a-01c302431e36

Button setup

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/b/b46be0dca92c57b859598cda9cc211f2848592fd.png)

and the results, dont know why it’s not display in here

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/7/7de93cab630dd1ea47d1d9413ec62dbf8e7121e7.png)

ah also, where can we find database ID ? I researched and just found entity ID only

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 7, 2023, 9:27am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/8 "2023-09-07T09:27:12Z")

</div>

> [@Minh\_Tri\_Do\_Hang](#):
>
> where can we find database ID

You would need to use scripting/API to query the schema (or you can examine the browser’s network calls, when viewing the DB config page)

---

<div class="post-metadata">

**Author:** ![Minh\_Tri\_Do\_Hang](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/minh_tri_do_hang/32/6791_2.png) [@Minh\_Tri\_Do\_Hang](https://community.fibery.io/u/Minh_Tri_Do_Hang)\
**Post date:** [September 7, 2023, 9:42am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/9 "2023-09-07T09:42:42Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/9/9ed786c893d86ddb67c60112a29cc6e787e11b98.png)  
I’ve following some guidences from Markdown document, but seem nothing happen when I’m using button for this script to get Database ID

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 7, 2023, 10:01am UTC](https://community.fibery.io/t/mentioning-entities-in-rich-text/5094/10 "2023-09-07T10:01:51Z")

</div>

You seem to have a script that gets the db ID, but you’re not doing anything with it (!)  
You may want to output it to the browser console, e.g. `console.log(dbID)` to see if it looks reasonable, and then you can use it in your markdown template.
