-
|
Hi, I'm trying to use the Template functionality of QuickAdd. I created my template and a new template action in QuickAdd with file name format const myvalue = await this.quickAddApi.inputPrompt("myvalue");
return `${myvalue}`;But this makes it ask for Any way to make it work properly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Sorry for the very late reply. No script needed - QuickAdd's format syntax works inside the template file itself, and a named variable is asked for once per run and then reused everywhere it appears. Since your file name format already uses |
Beta Was this translation helpful? Give feedback.
Sorry for the very late reply.
No script needed - QuickAdd's format syntax works inside the template file itself, and a named variable is asked for once per run and then reused everywhere it appears. Since your file name format already uses
{{VALUE:myvalue}}, just put{{VALUE:myvalue}}in the template body and QuickAdd inserts the same value there without prompting again.{{DATE}}works in the body the same way.Docs: https://quickadd.obsidian.guide/docs/FormatSyntax