Solved
Can i add a display logic to header using javascript?
Hi,
I was wondering if there is any way I can hide header in some part of the questionnaire using java script or other functionality? I am talking about the look and
feel header. I would like this header to be displayed for example after some question or section. Would much appreciate any answer or clue.
Thanks!
Best answer by TomG
@Piotr,
You have a couple of syntax errors plus (1==1 isn't a valid assignment and your ending semi-colon needs to be inside the }. Also, your code will throw an error is QR~QID939~1 isn't on the page.
It isn't clear to me if you want to display the header on the same page when the question is answered (in which you you need an event listener on the input) and/or on the subsequent pages (in which case you need to pipe the answer to the script).
Anyway, start your script by hiding the header, then show it if some condition is met:
```
jQuery("#Header").hide();
if( some condition ) jQuery("#Header").show();
```
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
