# Templater suggester option: browse templates folder and apply selected template

**URL:** <https://forum.obsidian.md/t/templater-suggester-option-browse-templates-folder-and-apply-selected-template/113090>\
**Category:** Help\
**Tags:** templater\
**Created:** [April 6, 2026, 8:46pm UTC](https://forum.obsidian.md/t/templater-suggester-option-browse-templates-folder-and-apply-selected-template/113090 "2026-04-06T20:46:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [April 6, 2026, 8:46pm UTC](https://forum.obsidian.md/t/templater-suggester-option-browse-templates-folder-and-apply-selected-template/113090/1 "2026-04-06T20:46:04Z")

</div>

My ‘create a new note’ default template suggests a few templates to use when creating the note, and it works great. I want to add one last option: if “other” is selected, then open the “Browse for Template” template which opens my Templates folder (incl subfolders) and lets me choose the template to use in this case.

The problem is that it just links to the selected template rather than applying it. Of course that is exactly what I’m telling it to do; but I don’t know how to tell it to “go and execute the selected template”.

> **Image**
>
> ![image](https://forum.obsidian.md/uploads/default/original/3X/b/a/baf89d5acc64c273841ac4c24af460f991534504.png)

I’ve tried various iterations of `<% tp.file.include("[[<% selectedFile.path %>]]")%>` and `<% tR+= tp.file.include("[[<% selectedFile.path %>]]")%>`

> **My 'Browse for Template' template code**
>
> ```auto
> <%*
> const folderPath = "Admin/Templates";
> const files = tp.app.vault.getMarkdownFiles()
> .filter(file => file.path.startsWith(folderPath));
> const selectedFile = await tp.system.suggester(file => file.basename, files);
> %>
> [[<% selectedFile.path %>]]
> 
> ```

---

<div class="post-metadata">

**Author:** ![Zachatoo](https://forum.obsidian.md/user_avatar/forum.obsidian.md/zachatoo/32/24205_2.png) [@Zachatoo](https://forum.obsidian.md/u/Zachatoo)\
**Post date:** [April 7, 2026, 1:20pm UTC](https://forum.obsidian.md/t/templater-suggester-option-browse-templates-folder-and-apply-selected-template/113090/2 "2026-04-07T13:20:26Z")

</div>

Try this

```js
<% tp.file.include(selectedFile) %>

```

---

<div class="post-metadata">

**Author:** ![Lise](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/898d66/32.png) [@Lise](https://forum.obsidian.md/u/Lise)\
**Post date:** [April 19, 2026, 1:51am UTC](https://forum.obsidian.md/t/templater-suggester-option-browse-templates-folder-and-apply-selected-template/113090/3 "2026-04-19T01:51:48Z")

</div>

Thank you so much.  
It worked like a charm.

---

<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:** [May 17, 2026, 1:51am UTC](https://forum.obsidian.md/t/templater-suggester-option-browse-templates-folder-and-apply-selected-template/113090/4 "2026-05-17T01:51:57Z")

</div>

Closed on May 17, 2026, 1:51am UTC

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