Playing with list output from formmenu menus

Hi all.

Let's say you have a formmenu command with multiselect activated, and you want to re-use the contents of your selection elsewhere in the snippet.

You could do this by using the name setting, BUT the output would come out in a "list" format like so:

{formmenu: name=list; multiple=yes; option 1; option 2; option 3}
{=list}

However, you can use the join function to present the output in a different manner. Here's how you do it:

{note}{formmenu: name=list; multiple=yes; option 1; option 2; option 3}

{endnote: trim=right}
- {=join(list, "\n - ")}

Hope this helps :slight_smile:

1 Like