Hiding a component with javascript

Hey there friends :wave:

I'm trying to hide components but running a script with container1.hidden = true, but it's not working... Any help would be appreciated!

Hey there @farbour. .hidden is a read-only property, not a method, so you can't set it like you're trying to above. Instead, in the "hidden" setting in your container component, use some JavaScript that relates to whatever logic you want to use for setting it as hidden.

1 Like

Thanks, @justin! Works now.