Alright, so your custom function converts checkbox selections to their value set label and appends it to a string. Allowing you to conveniently display the check box selections in another question's CAPI text (or similiar).
Now if I put it all together, your feature request looks like this:
I would like to request that the CSPro functions (getlabel and invalueset) take a string argument that evaluates to the name of an item like setvalueset. Using getlabel as an example, it would allow me to create a custom function that converts checkbox selections to their value set labels and append it to a string. I regularly need to display the value set labels for a check box's selections in CAPI text questions, so this new feature would increase the re-usability of my logic while reducing the lines of logic in my application. Here's an example of it in use:
function string labelCheckbox (string itemName, array string responseArray)
// it's used to display label for multiple response checkbox. Thanks to Josh, years ago.
string allvalue = "";
do ctr = 2 while ctr <= length (responseArray)
if (pos(responseArray(ctr),itemName)) <> 0 then
if length(allvalue) > 0 then
allvalue = allvalue + "/";
endif;
allvalue = allvalue + getlabel(itemName, responseArray(ctr));
endif;
enddo;
labelCheckbox=allvalue;
end;
This feature request makes it clear what you want and why. Which makes it easy for us to discuss and prioritize.