Choose which part of snippet to use

Hello!
Just wondering if it's possible somehow to skip part of a snippet. Essentially, I've created a snippet that will create a new email for me. I.e it will put in the individuals email address, tab to the the subject line and enter it and then move to the body of my email and insert my email template. (It's for work and we send templated emails). However, sometimes, I need to send the same email template, but I'm replying to an email rather than drafting a new one. So I don't need it to tab through and put in their email address, etc. Is it possible to create some kind of toggle or if/then command where it will skip the tabbing/selecting part of my snippet and go straight to the email body template? I have kind of gotten it to work by using the toggle command so that I just have to select whether it's a new email or a reply, but I was hoping to be able to do this without having to click anything else.

Would it be possible somehow for it to check if there's already an email or to have a different output depending on whether or not I capitalize the first letter or something like that? I am not very proficient at coding so I've been struggling to figure out if this is even possible.

Also side note - is it possible to switch between tabs in chrome. Can you use a snippet and when that snippet finishes it will move to the next chrome tab automatically?

Any ideas would be greatly appreciated.

Hello Cwight,

The idea of using a toggle is great, but if you don't want to have any extra click, you can try one of the following ideas:

  1. Have two separate snippets, one that will have the whole flow with tabbing (let's call it "/fulltemplate"), and another one that only has the template text (e.g "/template"). You can then import the "/template" snippet onto your "/fulltemplate" using the {import} command, so that you don't have to have the same template text twice

  2. If you're using your snippets on the browser, you can check in the if conditions whether the email has a "To:" value. If you're writing a new email, the "To:" field will be empty, and if you're replying then it'll have a name.

We have a Gmail and Outlook command packs with commands that will do this automatically for you, it'd look something like the below. Keep in mind you need to enable the gmail command pack for it to work, or update it to use the Outlook command.

{if: {gmail-name} = ""}Do the tabs{endif}

The rest of your template

is it possible to switch between tabs in chrome. Can you use a snippet and when that snippet finishes it will move to the next chrome tab automatically?

Switching between tabs is not currently possible

Thanks for your response! Unfortunately, this isn't in Gmail or outlook, but a completely different system that isn't specifically for emails. I tried using the selector tool to select the To: line or the Subject line to see if it was empty but it only ever gave me errors saying it couldn't identify the boxes. I think for now I'll just keep using the toggle function since I don't actually type out my snippet shortcuts. I program them into a mouse/keyboard so that when I push the button on said mouse or keyboard it puts in the shortcut for me which triggers the snippet. So, I'm not sure that having two separate templates would work without me needing twice as many buttons or just typing out the shortcodes...Thanks for your help!

I understand, thank you for the clarification!

If you'd like to schedule a call to try and fix the issue with the {site} selector let me know via email at obed@blaze.today.