Hi all
In my project template, I’d like to prompt the user and move the file based on his answer.
Here is my current template :
---
date: {{date}}
tags: [project]
title: {{value}}
status: active
due:
type: project
description:
scope: <% await tp.system.suggester(["Cwt", "Curuba"], ["Cwt", "Curuba"])%>
---
<% await tp.file.move("/" + tp.frontmatter.scope + "/Projects/" + tp.file.title) %>
It returns this error: File name cannot contain any of the following characters: * " \ / < > : | ?
If I run both command individually it works. Therefore I guess that templater doesn’t wait the frontmatter update before trying to move the file.
Any suggestion?
Thanks