Require test question response before moving on

ascott7223
ascott7223 Community Member Posts: 84
I have test questions scattered throughout a course. How do I require that the question be answered before moving on to the next slide?

Comments

  • dshapiro9464
    dshapiro9464 Community Member Posts: 8
    Hi! I am sure there are other ways to do this, but I use a condition to the next button that the question must be answered in order to go to the next page. Like this:

    Trigger: Mouse Click

    Action and Target: Go To Next Page

    Conditions: Variable Question_0001 Relationship Is Not Empty

    Else Action: Display Message “You must answer the question to proceed.”

    I hope that helps.
  • ascott7223
    ascott7223 Community Member Posts: 84
    Thanks Deidre! I found these instructions: http://trivantis.com/help/Lectora/16/ENG/Lectora_Help/index.html#2893.html but I don't have a Behavior ribbon. I'm attaching a screenshot of what I see.
  • dshapiro9464
    dshapiro9464 Community Member Posts: 8
    The Behavior Ribbon is attached to the Test. (See Screen shot below.)

    When I scatter my questions throughout the course, I don't use the Insert Test. Just Insert Question. (My questions are not scored, either. ) That is why I attached the Condition to the Next Page button.
  • ascott7223
    ascott7223 Community Member Posts: 84
    Ah, that makes sense. I'll see if I can get my buttons to cooperate again. I tried your suggestion once, but it didn't turn out right. Do you do this with inherited buttons, or do you do something special to the button (disinherit it, or something?) to pull this off?
  • dshapiro9464
    dshapiro9464 Community Member Posts: 8
    Oh. No. I should have mentioned: Not inherited buttons. Each page has a next button because I use the Condition to advance a lot to assure the student has completed the task on the page.

     
  • ascott7223
    ascott7223 Community Member Posts: 84
    Gotcha! Last question, relevant to the other question I posted. Can you make "Next" conditional based on letting an audio clip play all the way through?
  • dshapiro9464
    dshapiro9464 Community Member Posts: 8
    Lol Yes! That is the other reason each page has it's own Next Button. On the audio clip, add an action: Done Playing, Show Next (or whatever your next button object is called.) It works really well.

    Couple of things I've learned from this: Warn your students that the next button will not appear until the audio clip has finished (or they will look for it and think something is wrong.) And, make sure your clips are edited so there is not silence at the end to make the clip run too long.

     
  • ascott7223
    ascott7223 Community Member Posts: 84
    Thanks! This has been really helpful for a newbie like me!
  • ascott7223
    ascott7223 Community Member Posts: 84
    For some reason, my buttons aren't appearing when the audio is finished playing. I'm attaching a zipped file of the presentation to see if anyone can help me troubleshoot.
  • jvalley4735
    jvalley4735 Community Member Posts: 1,357
    I was able to get it to work after converting the audio to MP3 (Lectora will force the change when you go to publish because all audio has to be in MP3 and video in MP4 to be HTML5 ready).  I also changed the audio from initially visible to visible then changed the player to invisible.  You can see it on the page "John Dwyer".  I was able to get it to work in Preview Mode and Preview in Browser Mode.
  • ascott7223
    ascott7223 Community Member Posts: 84
    Thanks Jennifer. I'm having a different issue now. I haven't tried converting all of the audio yet, because I'm having an error in all of the preview/run/browser modes where the base page shows up but nothing else appears correctly. Same thing in Review Link. I'm attaching a screenshot. I contacted Customer Service about this, but they haven't offered any suggestions on how to fix it yet.
  • ascott7223
    ascott7223 Community Member Posts: 84
    I'm not sure what's happening differently on my end vs yours, but when I click "convert to MP3" it "breaks" my project and gives me a javascript error that can only be fixed by deleting the audio object altogether. I can't open your version of the file, it gives me errors.
  • jvalley4735
    jvalley4735 Community Member Posts: 1,357
    I've experieneced that issue before if ActiveX is running when I get into the browser.  Are you trying to view the course in IE?

    I was able to open the files you shared and then the new version I created so I'm not sure what's going on there.  What version of Lectora are you running?

    I think some of the issue you're having may be due to that fact that your audio has the same name in the title explorer.  I would try changing the names to something more unique and trying again.
  • ascott7223
    ascott7223 Community Member Posts: 84
    I'm viewing in Chrome. I never use IE. Is that the better browser for this product? I'm running 16.0.2. I will change the names of the audio and see if that helps.
  • jvalley4735
    jvalley4735 Community Member Posts: 1,357
    Chrome is the best browser (in my opinion).  There shouldn't be any issues with sharing the files then because I'm running 16.0.2.  If you're not having any luck can you add me as a reviewer for the course?  That should help us figure out if it's Lectora or something browser related.

    My email is [email protected]
  • ascott7223
    ascott7223 Community Member Posts: 84
    I can add you as a reviewer for the course (what's your email address?) but I'm stuck right now in a holding pattern because I have a javascript error on the first page with an audio item. I can't figure out how to delete and re-add the audio object because I imported the entire project as a pptx into Lectora, and  I'm not sure how to isolate the particular offending audio object in ppt and copy it over into Lectora. I'm not technically minded enough for this stuff!
  • jvalley4735
    jvalley4735 Community Member Posts: 1,357
    As soon as a file is added onto your title it's also saved in a media folder so it's always available.  Get into the Media folder and delete the offending audio.  Once you go to open Lectora again it's going to say there's a resource missing and you'll just want to continue without it.  Then you can insert the audio back in at your own free will.

    I got the same issue your seeing in ReviewLink.  It's saying there's something wrong with the auto start option.  I'll ask around and see what I can find out.
  • ascott7223
    ascott7223 Community Member Posts: 84
    I am slowly working through the problems. I found the audio files in PPT and managed to import them into my project, but for some reason, only the audio for the last slide plays, and it plays on every slide as if it's inherited, but it isn't on the inherited page. Thoughts? Should I upload the project here again?
  • timk
    timk Community Member Posts: 1,219 ♦ Idol ♦
    I've opened your project in Lectora 11 and it's working quite well.

    0. Please always upload AWTs together with all additional folders, "images", "media" etc. otherwise all media files are missing.

    1. You should convert all audio files to mp3. You can let Lectora convert it during publication but it's easier to work with mp3s in the title. Remember to delete the .wav files from the media folder once they are all converted.

    2. You can choose a different player layout in the audio properties but that's only available for mp3s.

    3. On: Done Playing works only for mp3s.

    4. Which operating system are you running? If it's Windows 10 make sure to update the system to the newest version. I've had many problems with different Lectora projects due to issues between Windows 10 and the flashplayer. These seem to have been resolved in the latest Windows update.

    Tim
  • ascott7223
    ascott7223 Community Member Posts: 84
    Tim:

    0. I'm not sure how to do this.

    1., 2., 3. Noted

    4. I'm running Windows 7, I believe. Should I ask my IT department about upgrading me to 10?
  • timk
    timk Community Member Posts: 1,219 ♦ Idol ♦
    Because I've never worked with Lectora 16 in a real project I've used your project to get some practice.

    Mind that I've made some changes:

    1. I've converted all audios to mp3 and placed them on the pages with the standard player.

    2. I've moved the "Next" button to title level. There's no need for a separate button on any page if they're all doing the same action.

    3. I've changed your questions feedback to run an action group, instead of only displaying the message. The Next button is now displayed when the question has been answered (and the feedback message has been clicked "OK").

    Tim
  • ascott7223
    ascott7223 Community Member Posts: 84
    Thanks Tim, I'll check this out shortly. The reason the Next button was on each page was because I want it to only appear when the audio for each individual page has finished playing. Can that be done from the title page, when you're talking about 13 different audio clips?
  • ascott7223
    ascott7223 Community Member Posts: 84
    Now that I've looked at it, I see that it answers my question. Thanks again!
  • timk
    timk Community Member Posts: 1,219 ♦ Idol ♦
    It can easily be done. You can select any object as a target that is on the same page or on superior levels, esp. title level (or on chapter / section level if you had chapters or sections). You just can't select objects that are on different pages / chapters / sections.  The button on title level is "initially invisible" so it's invisible whenever a page is loaded and can be shown when the page audio is done playing. That's why the action to show it is added to the audio and not to the button.

    Of course now the next button is invisible when a question page is loaded as well. If you don't like the way I show the next button on those pages you can delete these actions from the action groups and add an action to show it to the page.

    Tim