Inserting macro into form?

I want to create one macro that will give me choices of multiple macros. Is there a way to insert a macro into one of the drop down forms?

So basically, I want to type in my macro and then choose between paragraph version A or version B.

Hi @azrichet,

Yes, this is one of my favorite workflows.

Here's a sample:

{formmenu: name=menu; option 1; option 2; option 3}

{if: menu=="option 1"}This is the text for option 1{elseif: menu=="option 2"}This is the text for option 2 {elseif: menu=="option 3"}This is the text for option 3{endif}

Yuo can replace the text with anything, including other form commands or even import commands to bring in other snippets.

Let me know if you want me to elaborate further :slight_smile:

Wow and it looks like it even keeps the formatting. Is there any way to hide the menu text?

When I use the macro "option 1" inserts and I don't want that.

Yep, you put it inside a note block:

{note}{formmenu: name=menu; option 1; option 2; option 3}

{endnote: trim=right}

{if: menu=="option 1"}This is the text for option 1{elseif: menu=="option 2"}This is the text for option 2 {elseif: menu=="option 3"}This is the text for option 3{endif}

1 Like