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