Restricting "next" button
May 10, 2013 12:00 AM
Hey everyone,
I just started using Lectora a few days ago, and I am wondering if one of you fine individuals can help me with an issue I am having. I've almost got it figured out, but im not quite there.
I have created a module with narration and I would like the "next" button not to be enabled until the narration is complete. I have created an event at the end of the narration called "end" and figured I could just add a variable to the next button that said when the event "end" is reached, show button... but I havent quite figured out how or where to add the show to the button.
Thats my first question. My 2nd, is an add on to the first. Once I successfully disable the "next" button, I wonder if there is a way for that button to stay unlocked on that specific slide. Our users may want to go "back" in the module and review some information and it would be unfair for them to have to listen to the narration again to be able to move forward. Would anyone know if this is possible?
Thanks a bunch of all of your help!!
Shawna
Discussion (9)
if the narration is an audio or video file, you can add an action which triggers on done playing to show the Next button.
to keep the next button there if they've already listened to/seen the narration:
create a variable (I'll just call it "v_watched") and set it to 0, you may want to select the option to retain the value between sessions so the learner can close the course and come back in without having to rewatch everything
When you're action to hide the Next button on page show, add a condition that it only triggers is v_watched = 1
add another action that triggers on done playing the narration that modifies the variable v_watched to = 1
This way, when the page is shown, the Next button is hidden, but only if v_watched does not equal 1 (i.e. the narration hasn't finished yet). Once the narration is done playing, the Next button will be shown, and the v_watched variable will be set to 1.
Hope this makes sense, feel free to message me if I'm clear as mud :)
@Altarium 50494 wrote:
if the narration is an audio or video file, you can add an action which triggers on done playing to show the Next button.
Wondering if you can walk me through this. I am using version 11.
I have created an event at the end of the audio file called "end"
From there, I clicked on the button in Lectora, changed the "target" to "show" the next button.
When I preview, it doesnt enable the next button at all. Even when the audio ends. I didnt know what to select under "trigger" so I tried all the different ones (page show, show, mouse click etc) and it will no go to the next page. Any ideas what I need to do from here? I was reading there was some issues with the audio events in version 11, not sure if they have fixed those issues yet.
It does seem to have issues with the trigger you would need to use.. it works fine in preview mode, but in browsers it doesn't function at all.
Regardless, what you would want to use (provided the lack of browser compatibility isn't an issue for you) would be an event that triggers "On Done Playing". You accomplish this by adding an event to the audio/video object itself in your title explorer. To do so, just right click on the object in your title explorer on the left hand side, and select Add Action (or just select the object in the title explorer and hit Ctrl+4). This will give you an action under the narration object, and from there you can set the trigger to "Done Playing".
Ideally what you'd do then is set that action to show the next button after you specify the trigger to fire the action on Done Playing. But... as I said, having just tested it now in both IE and Firefox, it does nothing.
A work around (which I've had spotty success with) is to create an action for the page which contains the narration which would show the next button on Page Show, but set a delay equal to the length of the narration. This would have the Next button become visible once a certain amount of time spent on the page has passed, but again... I've had this fail to work on some workstations, and others will work without issue. So it may work for you!
Let me know if anything above doesn't make sense!
What flavor of video/audio are you using?
What are your target browsers/platforms?
I tried both suggestions and seems to be exactly what you stated. Doesnt seem to want to delay for me either. Well, I will have to take this to the client and see what they want to do from here.
Thanks for your time!
@peterLEXsorenson 50586 wrote:
What flavor of video/audio are you using?
What are your target browsers/platforms?
I am using a short .wav file as a test. There is no specific target as all sorts of users will be viewing this module. Anything from computers to tablets i'd imagine. It will be on the company website for employees.
This can get a bit complicated depending a lot on what you are doing, how many you have, etc. Give me a call and I can help you for sure. Atlanta, GA Eastern Daylight Time.
Was just looking at your book on Amazon and am going to purchase it now, but was wondering if you have a digital copy available?
Kindle version will be next year. It takes a good bit of work to convert something like this and I am focusing my energies on Lectora 201 and 301 for the rest of this year.
Discussions have been disabled for this post