June 15, 2016 at 4:36 pm #318723
I am working on an interaction in Lectora Publisher (v 16.1.2) where, unlike a test that will randomly select 10 questions, I want users to answer 10 questions correctly before moving forward. I have 14 questions that can be cycled through. However, when I test it, it gives 5 questions then stops. I can’t figure this out. Perhaps someone has some insight.
The programming is as follows:
- Action group: Set Question Number
- Action: Modify variable _question, set equal to, RAND(1,14)
- Action: Run Action Group Show Question
- Action Group: Show Question
- Action: Show Question 1 IF _question is equal to 1 AND Question_0001 Is not correct
- Action: Show Question 2 IF _question is equal to 2 AND Question_0002 Is not correct
- (there are 14 of these actions, one for each question with appropriate _question value)
The test questions are standard MC with an image and a submit button. If the answer is correct, there is a Modify Variable _correct to add 1 to the variable. Once the feedback is shown, users click a next question button.
The actions associated with the next question button are:
- Run Action Group Set Question Number IF _correct Is Less Than 10 ELSE Run Action Group Done (the congrats…move along statement)
- Hide test question (14 of these actions)
To me, the logic is that with these actions it should cycle through unattempted or incorrect questions until 10 have been answered correctly. But, I must be missing something in my logic.
Thank you in advance for your insights and suggestions.June 16, 2016 at 1:26 am #318728
Have you tested the rest of the actions without using the randomise function in the first part – i.e. just set that action to add 1 to _question each time? That will at least test if the rest of your logic is sound.
Will be tricky to get the rand function to do as you need as it will not reliably cycle between every value in the range 1 to 14.
And what happens if a question number is selected again and the question has previously been answered correctly? i.e. what happens when: _question is equal to 1 AND Question_0001 Is Correct? That might be what is happening when it appears to stop after 5 questions.This post has received 1 vote up.June 16, 2016 at 8:58 am #318771
Well, there is good news and bad news this morning.
As I shut down my computer last night, it installed a windows update. This morning, the interaction is working much better (it showed 22 questions before I stopped) HOWEVER, the question text box shows, the submit button shows, and the feedback shows, but the answer choices, radio buttons, and image do not. So, you cannot answer the question.
I uploaded to ReviewLink to verify this…that it wasn’t just a local issue.
I have not changed anything this morning. Just opened the file.
Back to the original issue…you may be right that the program does not know what to do if the question has already been answered correctly. I think I will add an ELSE statement to run the Set Question Number action group again if the question that was randomly selected is not available.
Thanks!June 17, 2016 at 10:49 am #319004
Jennifer ValleyMember117 pts@jvalley4735
If you continue to have issues after updating Windows please let our support team know. You can email them at firstname.lastname@example.org or select the Submit a Support Ticket button the upper right of the screen under the list of active users.June 21, 2016 at 4:08 pm #319607
The good people at Trivantis helped me with the issue of stuff not appearing (I had an action out of order. Doh!).
So back to my original problem that mallow76 pointed out…I think that if a random variable has been used and was correct but is randomly selected again, questions stop appearing.
I tried adding to the Show Question actions an else statement so that the action read:
Show question IF variable = 42 (the question number) AND Question is empty (the question is to reset if previously used and incorrect) ELSE Run Action Group Set Question Number
Adding the else really confused things so I removed it. To me, the logic is that it should work…go and pick another question.
So, does anyone have any suggestions on how to have a value in a range of values omitted once the question it pulls has been answered correctly?
Thanks!This post has received 1 vote up.June 21, 2016 at 4:22 pm #319611
Please post a sample so we can work on getting the logic working without having to build everything else. Time is money and the truth is, well, I’m lazy…June 21, 2016 at 4:40 pm #319615
Here is an exe of one of these interactions. Let me know if there was something else you were expecting. I haven’t provided a sample before.
Thanks!June 21, 2016 at 4:45 pm #319617June 21, 2016 at 4:46 pm #319619
The is nothing attached. It would be best if you could provide a zipped publish of a sample. Make sure it includes the AWT and ini file.June 21, 2016 at 4:57 pm #319620
Let’s try this…There is the awt file with image folder and an exe of the content.
Attachments:June 21, 2016 at 6:00 pm #319622
Okay, the last one looks like it will work. A .docx didn’t come through but that shouldn’t be an issue. Give me at least a day to look it over.June 23, 2016 at 9:52 pm #319929
I haven’t forgotten about you. I went through it pretty good and your logic seems solid and smart. I didn’t find any typo’s either. I wonder, did you copy and paste the actions and then make changes? I can speak for Lectora but I know ToolBook didn’t like that. I’m also wondering if keeping it all one one page is contributing to the issue. By the way, what you are trying to accomplish and how you have to go about it really shows the weakness of Lectora’s action system.
I’ve got two of my three daughters graduating the next two days (one high school the other college) so I’m not going to get at it much until at least this weekend.June 24, 2016 at 8:10 am #319965
This interaction was built by another instructional designer who recently left the organization. I get to finish this course that she was working on. When I was first assigned the course, I went through trying to understand her logic. I ended up removing a couple of variables and actions that assigned letters to each question. I thought these variables were redundant and made things more complicated than they needed to be. Perhaps I need to go back and look at her original programming again. I may understand it better now.
The purpose of this activity is to reinforce users base knowledge. This knowledge will come into play in later chapters with some higher level decision-making (how style of roof can affect fire response efforts).
Congratulations on the graduations! I too will be out of pocket for the next week, but for a business trip. I will catch up when I get back next weekend.
Thanks again!June 30, 2016 at 11:24 am #320649
Attachments:June 30, 2016 at 11:36 am #320651
By the way, mallow76 hit the nail on the head. The problem could have occurred on the second question had you answered it correctly as number one and it randomly was selected as number two. The way I debugged this was to temporarily add a display message as the second action of the “select a question” action group. This quickly showed that when a correctly answered question was selected again – boom!This post has received 1 vote up.
- Action group: Set Question Number
You must be logged in to reply to this topic.