Multiple choice parameter label

Is there a way to return the label from a multiple choice parameter in an expression? Here’s an example of what I mean. I’d like to return the label “test” in the bottom parameter instead of the value “123”.

That’s not possible with the standard means. A list of labels can be extracted from the .morph file, but this method won’t be future proof.

I’m curious, what is your task that requires getting a list of labels?

What I was looking to do is pass the value to a sql query and the label would be the parameter filename. I suppose I could do it with an iteration, I just wanted to see if there was an easier way to pull the label from that parameter. Like an expression label({Multiple choice})

I would suggest having a 2-column lookup table inside the project for relating a parameter value to a file name. You can create such a table using the “Create list” action. Then use the lookup table to obtain a file name from a parameter value, when necessary.

BTW, it’s possible to copy and paste a list of parameter values into the action settings.

1 Like

Thanks, I’ll try that.