# Templater - prompt for properties and filename

**URL:** <https://forum.obsidian.md/t/templater-prompt-for-properties-and-filename/94359>\
**Category:** Help\
**Tags:** templater\
**Created:** [January 5, 2025, 11:13pm UTC](https://forum.obsidian.md/t/templater-prompt-for-properties-and-filename/94359 "2025-01-05T23:13:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tahask11](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/9dc877/32.png) [@tahask11](https://forum.obsidian.md/u/tahask11)\
**Post date:** [January 5, 2025, 11:13pm UTC](https://forum.obsidian.md/t/templater-prompt-for-properties-and-filename/94359/1 "2025-01-05T23:13:34Z")

</div>

### What I’m trying to do

Create a new note which prompts for few properties and use couple of this properties for file title.

### Things I have tried

In properties the prompt method works as expected, for e.g.

```auto
<% await tp.system.prompt("Day?") %>

```

When trying to use on of this properties to set file name, it fails

```auto
<% tp.file.rename(tp.frontmatter.topic) %>

```

Tried different combination and found frontmatter does not have the value yet.

There are many posts about setting properties or renaming a file, but couldn’t find anything which talks about both.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [April 5, 2025, 11:14pm UTC](https://forum.obsidian.md/t/templater-prompt-for-properties-and-filename/94359/2 "2025-04-05T23:14:02Z")

</div>

Closed on April 5, 2025, 11:14pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
