Hi Michael,



just noticed one other thing on this.   I have several variables where I have a label, and then multiple checkboxes. If I answer say 2 out of the 4 checkboxes, none of them are displaying in the variable editor.



Thanks


Example of this:



How the record producer is filled out:


find_real_file.png



How the variable editor is showing:



find_real_file.png



I'm guessing because I am hiding the label it is causing the issue?


Sam, I just replicated the issue on my demo instance and the issue is caused by hiding the label.   The variable UI uses the label above checkboxes like a container so if you hide the label then all the checkboxes get hidden as well.   Programmatically it will be difficult to come up with code to dynamically hide the label if none of the checkboxes are checked.   Its definitely possible but would require more time than I have to help in a community setting.



I ended up commenting out the label:


//hideTypes.push("11"); //Label



Then I added 11 to the exclusion list:


if (producerVars.question.type == "11" || producerVars.question.type == "19" || producerVars.question.type == "20") {


      continue;


}



Once I did that the checkboxes showed up and only the ones that I had checked.


Thanks for the above Michael and all your help.



I've just tried this, and the checkboxes now appear, but also all the other labels that I'd like not to appear also show.



I'll mark this question as answered, and start a new one to see if can come up with the finial issue.



Thanks once again for all your time and effort on this.



Sam


Hi Michael,

Thanks for this.

Can I just ask if there's any reason this wouldn't work in a scoped app? The BR is a scoped Display BR is that the right way to do this?

Cheers,
Nabeel