Jump to content

Using snippets inside "snippet triggers" and replace user choice


Recommended Posts

I have a snippet A which can be triggered with .a and inside the snippet text I have a {var:choice}.

 

I want to use the snippet A in a snippet trigger, where I have a list filter and the output should replace the {var:choice}

 

So my idea is:

  1. query user
  2. store selection in variable choice
  3. expand snippet A and copy to clipboard, while expanding the {var:choice} will be replaced with the value from step 2

 

But I only get the text of snippet A without text replacement. Any ideas what I'm missing?

 

image.png.0ed2ac5baa54213d0aa2c05f79b100df.png

Link to post

You’re trying to use a Snippet Trigger and a regular Snippet at the same time? That’s incredibly confusing. Use either one or the other.

 

When asking for help with a Workflow, please upload it somewhere as we can’t properly help you without access to it. Debugging can already be hard with access to the code, and you’re asking us to guess yours from a description. There are multiple places where your code or Workflow setup may be going wrong. Without looking at it we’re shooting in the dark.

Link to post

Yes, I thought that I can just re-use the snippet and don't have to copy the text, remove the snippet, etc.

 

I thought the WF just uses what's there. IMO it doesn't make things simpler by having two different snippet infrastructures... but anyway, will refactor my standard snippet into a Snippet Trigger...

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...