Highlight correct answer in online Quiz

If this shows up twice my apologies but it looked like my post was not going through.
I am putting together an online quiz in FrontPage using JavaScript to calculate the score. There is a button at the end of the quiz that invokes the JavaScript that will calculate the score. This works great. But, I would like it to also highlight the correct answer for each question. The following is the if statement used in the javascript to calculate the score:
if(document.quizform.Q1.checked) { score += parseInt(document.quizform.Q1[i].value);}
Is there something I could add to this statement to also have it highlight the text of the answer for the question? Any help will be greatly appreciated. TIA!

I noticed a few weeks ago that the first result for "Java" on http://www.googlism.com (which is currently down) is:
Java is not Javascript.It can be seen in Google's cache of the site.

Similar Messages

  • How to reveal correct answer in a quiz question

    Hello,
    I am using Captivate 5.5.
    Is there a way to allow the user to view the correct answer to a quiz question without having to keep clicking on the different options until they select the right one? I want to allow infinite attempts but equally, if they are in a hurry or just run out of patience, I want the user to see what the actual answer is straight away. Our learners are medics and they often have limited time.
    So the sequence could be something like this.
    1. User enters question page.
    2. Selects one answer. It is incorrect and retry message appears.
    3. User selects another answer. It is incorrect and retry message appears
    4. User decides that he/she wants to see the correct answer before moving on. Selects 'reveal answer' and is able to see what the correct answer is.
    5. User moves onto next slide (this could be another quiz question or any other type of slide
    In another package I have been using, we can specify a 'reveal correct answer' button which shows the correct answer straight away. Is there something like that in Captivate?
    Thanks....

    I think what you mean is that the quiz question's Failure action doesn't trigger until the final attempt and that would never happen if attempts is set to Infinite.  So if you were only incrementing the variable when the quiz question registered final failure then you'd only get one crack at incrementing the variable. yes.  My bad.
    However, if you are using Multiple Choice questions, you can also trigger actions using the Advanced Answer Option.  This will trigger an action when a particular answer is selected.  So if you set this for each incorrect answer, you could increment the variable each time they select the wrong answer.
    You can also use this same Advanced Answer action to execute a conditional action that first checks the value of the variable and then shows the rollover caption or increments the variable as needed.
    Say you create a variable called WrongAnswer and initialise it with a value of 0.  Then you create a Conditional Action called CheckWrongAnswer that looks like this:
    If WrongAnswer is equal to 1 assign Wrong Answer with 2, (then on the next line) Show RolloverCaption, ELSE assign Wrong Answer with 1.
    This shows the rollover caption after the second attempt resulting in an incorrect answer.

  • Highlighting correct answer after failing question?

    Hi,
    I'm trialling Captivate 7 and have worked out how to do pretty much everything I need it to do. I have 3 or 4 mini-quizzes scattered through the presentation all of which allow 3 attempts before moving on. What I'd like to do, however, is before moving on, show or highlight the correct answer(s). Is there a way to do that?
    Thanks

    Hello and welcome,
    Normally this will be done during Review: correct answer indicated (by a checkmark) as well as the given answers. But Review can only happen after the whole quiz has been done, using a button on the Score slide.
    It could be done, maybe a bit difficult for a newbie. Question slides do pause (you see the double vertical line in the Slide timeline), and that pause is used twice: playhead remains paused when the user clicks Submit and sees the Feedback captions, then he has to press Y or click on the slide to let the playhead continue. Look at the actions accordion in Quiz Properties panel: both Success and Last Attempt are by default set to 'Continue'.
    More information: http://blog.lilybiri.com/question-question-slides-in-captivate    and    http://blog.lilybiri.com/question-question-slides-part-2
    If you understand this work flow, you could time a highlight (box or something else), to start immediately after that pausing point. Since the playhead will continue, that highlight will appear, but be visible only for the duration after the pausing point. If that is not sufficient, you can make the quiz slide longer.
    Here I change the duration of the Quiz slide to 5 secs, which means that the Highlight box will be visible for (5 - 1.5) = 3.5secs before the playhead reaches the end of the slide and goes to the next slide

  • How can I show the correct answers in a quiz on Adobe Presenter 10?

    Hi all.
    I'm newer on Adobe Presenter.
    I've finished all questions on the quiz, but I like to show the correct answer after the user select a wrong answer and submit it.
    I've tried many thing and the correct answer isn't displayed.
    Thanks.
    Rafael.

    The correct answers are displayed after the quiz is completed and the user Reviews the quiz. If you want the correct answer to be revealed to the user in the quiz, then you will need to customize the feedback messages to state the correct answer. They are just text boxes on the slides, so you should be able to easily add text to them.

  • Show correct answers on a quiz?

    When using the question slides, is there any way to have Cp4
    show the correct answers after the user puts their answer in rather
    than just the generic incorrect box?
    I'm figuring on making a slide to follow the question that
    shows the correct answers, but if there's a cooler way to do it,
    I'd like to hear it.
    Thanks,
    Jason

    That's what I ended up doing. For most of the questions the
    message box works just fine, but for the matching one there are too
    many variables, especially when the quiz is set to mix the
    questions every time.
    Thanks for the replies!
    Jason

  • How to create flash quiz based on circling the correct answer?

    Hi all,
    I am quite new to actionscripting and need to create a flash based quiz.
    The user will have to circle the correct answer in the quiz.
    I do know of drag and drop function but didn't know how to create circling function.
    Please advise how should I get started.
    Thank you in advance.
    Regards,
    Chewy

    Here is something to wet your appetite. This script creates squares and allows you to draw any shape with the mouse when mouse is down.
    It doesn't define what square things are drawn around - this is how lines can be drawn with AS3 in principal. Just place the script on timeline.
    var beginPoint:Point;
    var drawingBoard:Sprite;
    var drawBoardGraphics:Graphics;
    init();
    function init():void
         removeEventListener(Event.ADDED_TO_STAGE, init);
         var board:Sprite = new Sprite();
         board.x = board.y = 20;
         addChild(board);
         var numSquares:int = 8;
         var gap:Number = 20;
         var square:Sprite;
         // make squares
         for (var i:int = 0; i < numSquares; i++) {
              square = makeSquare();
              square.x = (square.width + gap) * i;
              board.addChild(square);
         drawingBoard = new Sprite();
         drawBoardGraphics = drawingBoard.graphics;
         // board filler
         var drawFiller:Sprite = new Sprite();
         var g:Graphics = drawFiller.graphics;
         g.beginFill(0xff0000, 0);
         g.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
         drawingBoard.addChild(drawFiller);
         addChild(drawingBoard);
         drawingBoard.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
    function startDrawing(e:MouseEvent):void
         stage.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
         stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
         beginPoint = new Point(mouseX, mouseY);
         drawBoardGraphics.clear();
         drawBoardGraphics.lineStyle(3, 0xff0000);
         drawBoardGraphics.moveTo(beginPoint.x, beginPoint.y);
    function onMouseMove(e:MouseEvent):void
         drawBoardGraphics.lineTo(mouseX, mouseY);
    function stopDrawing(e:MouseEvent):void
         stage.removeEventListener(MouseEvent.MOUSE_UP, stopDrawing);
         stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
         drawBoardGraphics.lineTo(beginPoint.x, beginPoint.y);
    function makeSquare():Sprite {
         var s:Sprite = new Sprite();
         var g:Graphics = s.graphics;
         g.beginFill(Math.random() * 0xFFFFFF);
         g.drawRect(0, 0, 60, 60);
         g.endFill();
         return s;

  • How to create a flash quiz based on circling the correct answer?

    Hi all,
    I am quite new to actionscripting and need to create a flash based quiz.
    The user will have to circle the correct answer in the quiz.
    I do know of drag and drop function but didn't know how to create circling function.
    Please advise how should I get started.
    Thank you in advance.
    Regards,
    Chewy

    Hi all,
    I am quite new to actionscripting and need to create a flash based quiz.
    The user will have to circle the correct answer in the quiz.
    I do know of drag and drop function but didn't know how to create circling function.
    Please advise how should I get started.
    Thank you in advance.
    Regards,
    Chewy

  • How can I allow a learner to review a created Drag and Drop Quiz to show the learner their incorrect/correct answers?

    Captivate 8: I have created an assessment with two multiple choice question slides and eight drag and drop question slides. After the learner views their score, I would like them to be able to review all of their answers to see where errors were made. Currently, the review quiz only shows their answers and the correct answers for Multiple choice question slides. Ideally, I would like a review of the drag and drop question slides where the incorrect choices are outlined in red or something to this effect. I appreciate any insight and suggestions!

    Sorry, D&D is not a normal question slide and I can only recommend logging a feature request. I would really like to be able to choose whether an interaction is reset or not, because this problem doesn't exist only for D&D but for all learning interactions as well.

  • In a Quiz the Correct Answer Buttons are too close to the answer letter. How to give more space?

    When creating a quiz and previewing, the Buttons to select the correct answer are too close to the letter for the answer. How do I add space between them. Suggestions?

    I think what you mean is that the quiz question's Failure action doesn't trigger until the final attempt and that would never happen if attempts is set to Infinite.  So if you were only incrementing the variable when the quiz question registered final failure then you'd only get one crack at incrementing the variable. yes.  My bad.
    However, if you are using Multiple Choice questions, you can also trigger actions using the Advanced Answer Option.  This will trigger an action when a particular answer is selected.  So if you set this for each incorrect answer, you could increment the variable each time they select the wrong answer.
    You can also use this same Advanced Answer action to execute a conditional action that first checks the value of the variable and then shows the rollover caption or increments the variable as needed.
    Say you create a variable called WrongAnswer and initialise it with a value of 0.  Then you create a Conditional Action called CheckWrongAnswer that looks like this:
    If WrongAnswer is equal to 1 assign Wrong Answer with 2, (then on the next line) Show RolloverCaption, ELSE assign Wrong Answer with 1.
    This shows the rollover caption after the second attempt resulting in an incorrect answer.

  • What is the best approach for a short answer quiz that has a number range as the correct answer?

    Client does not want to use multiple choice questions, so I am trying to figure out the best way to put in a range of numbers for the correct answer.

    I'm doing my best to figure this out, but not finding success in my advanced action. Below is the quiz question and how I setup the advanced action.
    Question: Determine the total heat load for test house 1.
    Answer: 32,120
    Acceptable Answer Range: 30,514 - 33,726
    Created TEB - Validate User Input; Numbers; Variable Name: Value1; Correct Entries box blank; Reporting: Include in Quiz; Points 10; add to total; report answers
         On Focus Lost: Execute Advanced Actions
              Conditional Action
                   If
                        Value1 is greater or equal to 30514 AND
                        Value 1 is lesser or equal to 33726
                   Then
                        Show SmartShape_1 (Correct feedback prompt)
                        Expression Value1=cpQuizInfoTotalQuizPoints+10  (I have also tried cpQuizInfoTotalProjectPoints and got same results)
                   Else
                        Show SmartShape_2 (Incorrect feedback prompt)
    I have quiz reporting turned on and I am testing this by including a second slide that is a standard multiple choice question so I can check results on the Quiz Results page at the end of the project showing the total score. I have not been successful yet in getting the system to add the points in appropriately. Is there another system variable I should be using to add the points to the quiz for reporting to the LMS or am i going about this completely wrong?

  • How do I change the color of the highlight when hovering over answers in the quiz?

    Hi
    I am trying to change the color of the highlight when hovering over answers in the quiz.  My companies standard font color is grey and so is the highlight when i hover answers.
    Is it possible to change this?
    Thanks
    Charlene

    No, it is (still) not possible to change that hover color, not even in CP8.0.1. I recommend to enter a feature request: Adobe - Feature Request/Bug Report Form

  • Captivate 5 quiz review not showing correct answers when loaded to LMS

    Hello All. I would really appreciate some help please. Despite the quiz review working correctly when published, i.e. both 'your answer' and 'the correct answer' captions appear in the review, on loading to LMS the review caption does not show the 'the correct answer is' , but instead 'you did not answer this question completely'.
    Any ideas why this should be the case? I've attached screen shots of my quiz preferences for completenes.
    Many thanks in advance.
    Janey

    Do the same modules evidence this behaviour when published and played outside the LMS, e.g. from a web server or on your hard drive?
    If not, it's possible that some setting in the LMS is over-riding what happens at playback.  You could try checking the box under LMS Customisation for Never Send Resume Data and see if that seems to make any difference.  If the LMS is maintaining a record of some previous attempt at the same module then turning off Resume Data might show that up.

  • Captivate 7 - Incorrect Answers not allowing quiz to Continue. Buttons not functioning correctly (Clear, Back, Next). I have Knowledge Check

    I am experiencing a problem with the Quiz feature of Captivate 7. Correct answers are submitting o.k., but Incorrect answers are not. You cannot go forward with them, i.e., the program will not Continue or go to the next question with an Incorrect answer in the Assessment.
    This presentation has 15 Knowledge Check questions (0 points) and 10 Assessment Questions (10 points each).
    Also the buttons don't always work correctly, i.e. Clear, Next, Back.
    What could I try?

    Thank you for your response. No. I didn't do anything like that. I figured that I should probably divide this into 2 parts and aggregate them. That was going to work, but  I checked with one of our other users in TX. He told me that what they always do is to divide up the presentations into 2 parts. They don't aggregate them, but instead, let the LMS take care of going from the learning module (with the Knowledge Check questions) to the Assessment Module. Once you exit from the learning module, you immediately go into the assessment.
    Captivate 7 doesn't really allow for this type of test without aggregation or an LMS. You can have a pre-test, but it expects those questions to come at the beginning of the course, not to be interspersed throughout the course. I also found that using the Question Pools gave me more flexibility in moving Knowledge Check questions around using the Filmstrip.
    The other interesting thing was that the TX expert told me to remove the Accessibility Feature because, apparently, it causes other parts of Captivate not to work. I found that to be strange.

  • Quiz - not recognising correct answers

    Just trying to create a quiz using Captivate.
    I thought I had it figured out, except that it doesn't seem to recognise correct answers.
    http://www.learners-guide.co.uk/quiztest/captivate/tests/test3/test3/index.html
    I have selected the checkbox for Q1 and tick boxes for Q2.
    What might have I done wrong or missed?
    Thanks.

    Maybe these posts could help to clarify the design of Question/Score slides:
    Question Question Slides in Captivate - Captivate blog
    Question Question Slides - Part 2 - Captivate blog
    Buttons on Question/Score Slides in Captivate 6? - Captivate blog
    Branch Aware Quiz - Captivate blog

  • Green highlight box appearing on the quiz submit button

    Hi all,
    There is an unusual green highlight box appearing on my quiz slide when I roll my mouse over the 'submit' button (on the published version). This has never happened before, please help!
    Screenshot below
    Thanks for your help.
    Waterbottle1

    Hi,
    When you move button on a Question slide then please make sure you move button parent area don't move internal  content of the button.
    So, when we hover mouse on button then "Green background color" is used to depict OnFocus. Now if you move button content then hover area will be complete parent button area.
    Please see attached screenshot to better understand.
    So, in present question slide please move internal content of button in correct position or delete this Question slide and ad new question slide and move parent button area to change button position.
    Let me know if this solve the problem.
    Thanks

Maybe you are looking for