Possibility of hiding components (other than buttons)

Is there a way of hiding components using CL? At the moment there is a hidden sink for buttons but I can’t see it for any other components.

The use case I have in mind is if I want to send a student back to a previous screen to correct something, I can change the content of the note to instruct them and I can hide buttons but I can’t hide other components on the page (as far as I can tell.)

I would like to be able to have the screen just consist of that note if the user is required to go back and fix something. (Although I would also be happy for a completely different solution to this problem, like disabling the “forward” button if a user has a significant problem on the current screen.)

You can’t hide the whole component but you can do something like this: http://www.mrchowmath.com/blog/the-people-demand-screen-locks

Thoughts on hiding multiple choice or inputs?

Yup. I disable the submit Button, change the button text, and control the choice text in CL to be blank.

Ok. I’m still looking for something a bit more elegant (like the equivalent of the hidden sink) but it sounds like this is the best workaround for now. Thanks.

What would this look like with typing code? I am new to computation layer and I want to hide a multiple choice question until they complete a question on a previous page.

Use the choiceContent sink and set it to “” before the last question is answered.

I am having difficulty getting it to work. Here is what I have in the code of my multiple choice “whatcolor” (3 options). The previous page has a question (game1choice1) that they need to answer. If they do not answer it, I don’t want the question “whatcolor” to show up on the next page. Is there a way you can help me with this?
thanks!

when game1choice1.isSelected(1) or game1choice1.isSelected(2) or game1choice1.isSelected(3) whatcolor.isSelected(1) = “red”

when game1choice1.isSelected(1) or game1choice1.isSelected(2) or game1choice1.isSelected(3) whatcolor.isSelected(2) = “blue”

when game1choice1.isSelected(1) or game1choice1.isSelected(2) or game1choice1.isSelected(3) whatcolor.isSelected(3) = “green”

otherwise ChoiceContent(1,2,3)=""

Like @Bryn noted its not very elegant and you will see one blank choice but this is the best way now to hide the choices:

N=when game1choice1.isSelected(1) or game1choice1.isSelected(2) or game1choice1.isSelected(3) 1
otherwise 0
choiceContent(1):when N=1 "Red"
otherwise ""

choiceContent(2):when N=1 "Blue"
otherwise ""

choiceContent(3):when N=1 "Green"
otherwise ""

Another option is setting each choice to say something like “Go back and make a selection first” or something like that.

Thank you! I appreciate it!