Hello Jordan Miller,
A workaround for the Enhancement would require quite a bit of calculations, but can be done using the jr:choice-name() function.
I have attached a sample XLSForm that calculates a hidden question to be used as the instance name. Since the jr:choice-name() function can only take one input the selected-at() function is needed to grab specific choices from the select multiple question.
For example:
jr:choice-name( selected-at(${workers_1}, 0), '${workers_1}')
Once those are defined an if() statement can be used to return varying results from the jr:choice-name() calculations.
For example:
if(count-selected(${workers_1})=3, concat(${name_0}, "," , ${name_1}, "," , ${name_2}), if(count-selected(${workers_1})=2, concat(${name_0}, "," ,${name_1}), ${name_0} ))
This sample says if there are three selections in the select multiple return all jr:choice-name() calculation fields, otherwise if two are selected return those two labels, otherwise return only the first selection (assuming that only one choice has been selected) or nothing.
Thank you,
Zach
Thank you,
Zach