Custom variable in text block

Hi there,

I’m not sure how to do this, but I believe it is not technically challenged.

I basically need to bring a variable - like the username - to a text block or append it next to it. Do I need a custom block to do so?

Here’s an example:

1 Like

Yes, custom code is required. You can do something like this:

<div id="welcome" class="sw-font-family-default"<p class="h2"></p></div>
    document.getElementById("welcome").innerText = "Hi " + logged_in_user.softr_user_full_name;
1 Like

Brilliant! This is exactly what I was looking for.

Thank you very much for sharing your knowledge :star_struck:

This is great, thanks for the Q&A sharing …

Is there a way to pull field content from Airtable in a similar vein? For example, I have fields for first name and last name in Airtable … to show a first name only (rather than full name from Softr) would be ideal.

How do I see what other Softr variables are available to be used similarly - it may spark some further creativity here!