I have a function that detects any changes in the user's window and when a certain width/height is reached, I want to alert the user and disable the next button.
What I am trying to achieve is something along the lines of:
if (condition == True) {
disableNextButton()
} else {
enableNextButton()
}
This needs to go in the Header, under Look & Feel as this is a function that will apply on all pages of my survey.
This sort of code work perfectly when I put it in individual questions as I can use the
thisobject as follows:
if (condition == True) {
this.disableNextButton()
} else {
this.enableNextButton()
}
However, I can't seem to find an alternative for applying that in the Header and workarounds seem quite cumbersome.
Any ideas?