I have a button with javascript code:
switch (prez.variable('poolOne')) {
case 0:
prez.showSlideAt(3);
break;
case 1:
prez.showSlideAt(4);
break;
case 2:
prez.showSlideAt(5);
break;
case 3:
prez.showSlideAt(6);
break;
case 4:
prez.showSlideAt(7);
break;
case 5:
prez.showSlideAt(8);
break;
case 6:
prez.showSlideAt(9);
break;
};
poolOne’s initial value is 0. And when the question is submitted submit button adds to it. So every time they click on the mouse click on the main menu it goes to the next random question but after the third random question (when poolOne variable is 3) the button is becomes diabled and I can’t continue the presentation. I don’t understand why. I set it to disable it when poolOne’s value is 7. Like this on load:
if (prez.variable('poolOne') == 7) {
prez.object('Mouse Click_7').state('Disabled')
}
(I have 7 random questions.) But it becomes disabled at 3 every time, not 7. Please help me
I have activepresenter 9 and windows 10.