How to collapse a box when a boolean in a dataset isn't ticked

Can you help @russian-dima ? You seem to be pretty good at this kinda stuff.