# Merge tags in Rich Text View

**URL:** <https://forums.knack.com/t/merge-tags-in-rich-text-view/10328>\
**Category:** API & Custom Code\
**Created:** [January 5, 2015, 6:09pm UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328 "2015-01-05T18:09:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sydney63435](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@Sydney63435](https://forums.knack.com/u/Sydney63435)\
**Post date:** [January 5, 2015, 6:09pm UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/1 "2015-01-05T18:09:58Z")

</div>

I would like to use a merge tag for a user's first/last name in the rich text view on an interface page, essentially a "Welcome, USER! Thanks for stopping by!" Knack support says I would need to insert custom jquery for that.

Does anyone know how to do that? Or where I would start?

---

<div class="post-metadata">

**Author:** ![BRUNOCERQU60563](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/brunocerqu60563/32/162_2.png) [@BRUNOCERQU60563](https://forums.knack.com/u/BRUNOCERQU60563)\
**Post date:** [May 22, 2021, 9:42am UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/2 "2021-05-22T09:42:32Z")

</div>

I need this too, it would greatly simplify the creation of printable documents.

---

<div class="post-metadata">

**Author:** ![Simonm](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@Simonm](https://forums.knack.com/u/Simonm)\
**Post date:** [November 15, 2020, 5:35pm UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/3 "2020-11-15T17:35:53Z")

</div>

Hello everybody,

Did anyone find solution in reference to the above topic, I really need a way to display customer data in rich text view?

---

<div class="post-metadata">

**Author:** ![AniaGuz63968](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@AniaGuz63968](https://forums.knack.com/u/AniaGuz63968)\
**Post date:** [November 18, 2016, 5:09am UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/4 "2016-11-18T05:09:32Z")

</div>

I agree that this would be a great feature.

---

<div class="post-metadata">

**Author:** ![MilenaNiki19386](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/milenaniki19386/32/163_2.png) [@MilenaNiki19386](https://forums.knack.com/u/MilenaNiki19386)\
**Post date:** [March 2, 2016, 5:43pm UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/5 "2016-03-02T17:43:01Z")

</div>

I need this desperately .Has anybody found a work around for the topic above?

---

<div class="post-metadata">

**Author:** ![MorganCobb69423](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@MorganCobb69423](https://forums.knack.com/u/MorganCobb69423)\
**Post date:** [October 7, 2015, 2:39pm UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/6 "2015-10-07T14:39:32Z")

</div>

I need this in my life! &nbsp;I would like to supplement a combination of table, list, and report views with blocks of richtext loaded with merge tags that pull data from elsewhere in the app. &nbsp;Then add CSS to this page to make it printable. &nbsp;Richtext with merge tags would be magnificent.

---

<div class="post-metadata">

**Author:** ![JohnKatez44398](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@JohnKatez44398](https://forums.knack.com/u/JohnKatez44398)\
**Post date:** [May 25, 2015, 10:23pm UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/7 "2015-05-25T22:23:05Z")

</div>

Exactly what I would love to see!

---

<div class="post-metadata">

**Author:** ![Stephen16672](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/stephen16672/32/679_2.png) [@Stephen16672](https://forums.knack.com/u/Stephen16672)\
**Post date:** [January 16, 2015, 2:13am UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/8 "2015-01-16T02:13:11Z")

</div>

I second this it would be great to do this&nbsp;

---

<div class="post-metadata">

**Author:** ![geral](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@geral](https://forums.knack.com/u/geral)\
**Post date:** [October 4, 2023, 5:34pm UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/9 "2023-10-04T17:34:10Z")

</div>

reviving a 8 years topic ^^

is there a pice of code to empower rich text ?

---

<div class="post-metadata">

**Author:** ![CSWinnall](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/cswinnall/32/3631_2.png) [@CSWinnall](https://forums.knack.com/u/CSWinnall)\
**Post date:** [October 4, 2023, 7:31pm UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/10 "2023-10-04T19:31:48Z")

</div>

There are a number of ways to do this.

I would insert a rich text view with this html  
`<p>Welcome, <span id="userName"></span>! Thanks for stopping by!</p>`

I would create a text formula field using Knacks getfirstname() getlastname().

See here, [Builder Guide - Knowledge Base](https://learn.knack.com/article/builder-guide#fields) for the text formula functions available.

In the JavaScript pane

```auto
$(document).on("knack-view-render.view_xxx", function (event, view) {
//replace xxx with your view
     var userName = Knack.getUserAttributes().values.field_yyy; //replace yyy with the filed id of the new text formula field.
     $('#userName').text(userName);
});

```

Hope this helps any questions I’m more than happy to help.

Craig

---

<div class="post-metadata">

**Author:** ![geral](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@geral](https://forums.knack.com/u/geral)\
**Post date:** [October 10, 2023, 12:05pm UTC](https://forums.knack.com/t/merge-tags-in-rich-text-view/10328/11 "2023-10-10T12:05:37Z")

</div>

yes,  
html code on text formula box , for now suits my needs.

thank you
