Hey, is this the sort of behaviour you’re after? I have a few buttons which don’t have any code in themselves, but they call a template which creates a file from another template
For example, I have a “new note” button, that leads to a template with the following code:
<%*
const fileName = await tp.system.prompt("File name")
const templateName = await tp.system.suggester(["task-tpl","project-tpl"], ["task-tpl","project-tpl"])
tp.file.create_new(tp.file.find_tfile(templateName), fileName, "📥 INBOX")
%>
This has a pop-up to enter a name for the file, or game name, and that in turn creates a new file from the template I want. This way, your suggester/prompt what have you is in the leapfrog template, and allows you to pass the variable in that sense.
So with reference to the diagram I made, I guess it would be a slightly different approach and look more like the following:
I could be way off the mark here!

