Lists and formmenu

I'm familiar with using a list as the available options but I was wondering if there is a way to set default formmenu values using the same list?

For instance can you set it so all the values in the below list are selected by default?
Usually for a formmenu without a list you would simply set it by putting "default=" before each option but not sure if its possible when passing in a list

{list= ["1", "2", "3"]}
{formmenu: values={=list}; multiple = yes}

Form default's generally can't depend on form data values so I don't think what you want would be possible using default.

What you could potentially do is use {run}, to set the value of the formmenu based on the formenu's name. For example:

{list=["1", "2", "3"]}
{formmenu: values={=list}; multiple=yes; name=my_menu}

One time, set the value of my_menu to list:
{run: my_menu=list}

1 Like

awesome!
thanks again