Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 46

Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
05/06/13 03:35 PM (12 years ago)

Only Display 2 Quiz Answers

Hi All, How would I only display 2 quiz answers, not the conventional 4? Thanks, Jake
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
05/06/13 09:39 PM (12 years ago)
I did this with my True/False quiz version. I simply put a If/then statement in the answer display section. When the answers start getting displayed, I set the alpha to zero if the childItem (quiz item) had a "isTrueFalse" JSON parameter set to "TRUE". You should see the logic in the code where the answers' alpha is changed from zero to 1.0 (if I remember correctly). Just make sure answer 3 and 4 remain at zero. (and make sure the correct answer is forced to be in either answer 1 or 2). Hope this makes sense. If you need, I can dig up my True/False quiz version (from the QuizMaker tool). See the video at the bottom of this link: http://idevdepot.com/category/buzztouch-tutorials/stobes-buzztouch-tools/quizmaker-tool/ -Chris
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.