Action to Pick from Multiple Actions

So I have a few actions that will send text to a Reminders list. Is there a way to create an action to choose from those actions? That way they don’t take up as many slots in the action bar on the right. (I hope this makes sense lol) Thanks!

What you want is a Prompt action. You can turn off the setting for entering text, and in the next section, add an arbitrary list of buttons separated by pipes, e.g.:

button1|button2|button3

Awesome thanks. Follow up question: after I make my buttons how do I get them to run the specific Drafts action?

Based on the same principle, I can offer an alternative approach based on something I made available via my action group suite.

The ThoughtAsylum action group includes a helper action called TAD-Action Menu. This is intended to simplify how to build exactly this kind of approach, and give users a bit more power in doing so. It builds a ‘menu’ of buttons in a prompt window and executes an action based on which button is selected.

Here’s the actions’s description, but I’ll explain a bit more below.

This is a helper action called from another action that sets up several template tags to populate the menu.

There is an example action in the ThoughtAsylum - Power User action group called TAD-Info Menu that you can clone to build your own action menu.

It uses actiondisplaynames and actionnames template tags to list the buttons and the actions they trigger (first line in one maps to first line in other, etc.

It uses prompttitle and promptmessage template tags to specify the name and message for the prompt the user chooses from for which action to run.

The ThoughtAsylum - Power User action group includes an example action - TAD-Info Menu.

There are five steps in this action. Four that set-up the settings that you want to use for configuring the menu, and the final one that calls the TAD-Action Menu action to build and show the menu.

The four actions that set up settings are as follows:

Define Template Tag - actiondisplaynames

  • This step sets up a Drafts template tag for the names of the buttons to display.
  • Each button’s name is placed on a separate line.
  • The buttons are displayed in the order that they are specified.

Define Template Tag - actionnames

  • This step sets up a Drafts template tag for the names of the actions to run.
  • Each action is placed on a separate line.
  • The name of the action is mapped 1-2-1 to the corresponding button name in the previous action step. i.e. the order of button name and action name should match between the two.

Define Template Tag - prompttitle

  • This is the text to display as the title of the prompt window that is displayed.

Define Template Tag - promptmessage

  • This is the message to display above the buttons within the prompt window.

If you download the action groups referenced, you should be able to clone the example TAD-Info Menu action and make some simple modifications to create your own.

Hope that helps.

1 Like