Insert this in a text field on static block <span id="user-name"></span>
and this to Page Settings>Custom Code>Header field and replace BLOCKID with your block id(name)
You need to change ‘First Name’ by your actual first name field (case sensitive)
Replace ‘list1’ in window.addEventListener(‘block-loaded-list1’, () => { by the block ID where the name should be displayed.
Can you please check my understanding?
I am following this Softr Help Doc. It says if I am created a new field called Position in Airtable, I can then map it to User Profile block. If I do this, I can then write javascript custom code like the following?
Thank you for your reply. However, it does not apply to my scenario. In my case, I need to add a new field in Airtable and I plan to sync it to the internal user table. What I really need is to push that data to Google Tag Manager via the JavaScript custom code. This is what I need help with. If Airtable and the internal user table has a new field called “Position”, how do I reference in Javascript.
Is it … const myData = window[‘logged_in_user’][‘Position’];?