Suppose I have a math input that I want students to explain before another component in another slide is revealed. Currently I named the math input component submit1 and
I have coded in the component I want hidden:
hidden: submit1.submitted
But this only keeps the component hidden until something is submitted, I want to keep the component hidden until something is submitted and explained
That actually hides it when itâs submitted. Remember when your conditions are âtrueâ, then the component is hidden. Try this:
hidden: not(submit1.submitted) or isBlank(submit1.explainContent)
Edit: Actually this would probably work since the explain prompt doesnât show unless you submit.
hidden: isBlank(submit1.explainContent)
1 Like
Thanks! Is it possible for the component to be hidden based on whether the explanation to the math input is submitted, instead of whether or not it is blank?
I donât think so, thereâs only submitted
for the âSubmit and Explainâ button. Thereâs no equivalent for the explain prompts âSubmitâ button. Maybe a feature request, @JayChow?
That would be awesome to have an equivalent for the explain prompts âSubmitâ button! Otherwise, it always takes an additional Free Response input to make students explain their answer.