How can I use the filename in the note AFTER I enter the title?

What I’m trying to do

Have a template for contacts use the file name (which is the contacts name) paste into the note after I set the file name.

Things I have tried

I cannot seem to find the right wording to find any help online. But here is the code I am using in my template:

## 📛 Hello, my name is...

**Name:** <% await tp.file.title %>
**Pronouns:** 
**Company:** 
**Phone:**
**Address:** 
**Website:** 
**Email:** 
**Affiliation(s):** 
- 
**Title:** 
**Location:** 
**Website:** 

---
## 📝 Contact Notes:
- 

What is happening:

So the file is created correctly, but where the title should go, (Name:) is Untitled because that is what the new file is created as.

Name: Untitled

Can someone please tell me how I can accomplish what I want? Please :pray: Thank you in advance.

At the very start of your template you need to detect whether the file is named “Untitled” or similar, and change it before you move on to the rest of the template. An example on how to do this is given in the thread below: