You can't, JavaScript can only work on questions within a single page.
Run the survey in group-by-group and place all questions except the hidden one in separate groups.
Run the survey in group-by-group and place all questions except the hidden one in separate groups.