Show the exact code OR a screenshot of the server action steps you are trying to use. Your abstract descriptions never help us understand what are you doing...
This is totally not clear and not helping us to understand what are you doing:
So I was trying Ben’s solution but with a dynamic list of comma separated numbers instead, so my variable looks something like this: <dmx-value id="varPerm" dmx-bind:value="'{{sc_userRole.data.m}}'"></dmx-value>
And the variable is returning the correct list of numbers when checked on the console:
However the condition which I have is not working as it should:
The value being set in varPerm is actually a string and not an array.
You should create an array component, and not variable to get correct options in pickers.
And the dynamic value should be set as: