Thanks Shloke, but wouldn't your solution work only when I load the form? I wanted to hide/display variables as soon as user selects an option in a variable in the variable editor (onChange) without having to save or reload the form.