Merge tags in Rich Text View

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?

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

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?

I agree that this would be a great feature.

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

I need this in my life!  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.  Then add CSS to this page to make it printable.  Richtext with merge tags would be magnificent.

Exactly what I would love to see!

I second this it would be great to do this 

reviving a 8 years topic ^^

is there a pice of code to empower rich text ?

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 for the text formula functions available.

In the JavaScript pane

$(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

2 Likes

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

thank you