I’m new to AP and currently trying to move some of our learning material from Captivate to AP.
On one slide in Captivate we have 11 questions. In each of the questions the user has to enter a number and(!) choose one of two options. Only if the number and the selected option are correct, the question is correct. The whole slide is correct, if, e.g., 80% of alle questions are answered correctly.
What would be the best strategy to realize this in AP? Do you have a tutorial for advanced scripting of questions? Programming this question in JS would be an option for me.
Could you please share the output of your project created in Captivate so we can take a look at? Alternatively, you can send us a video when you work with the output. (You can send it to firstname.lastname@example.org).
Besides, please let us know if you just want to show the result to users only, or you want to receive the report data?
unfortuneatly the project in Captivate does not work any more since the former developers heavily relied on (AS) plugins which are no longer supported.
My idea would be, that the user gets a visual feedback which of the 11 questions on the slide are answered wrong (marked red) and that they get an overall feedback for the whole slide. Each question consists of text input (number) and a select field (e.g., a symbol). Example: correct: 100 €, wrong: 99 €, 100 $).
just to share some of my recent thoughts with you:
Would it be suitable to use an embedded web object (iframe) for programming the question(s) with HTML and JS? Can the slide communicate with the web object and vice versa (e.g., on submit event)? Can the web object access resources from the project (e.g., for using images)? What object in the slide could be used as “question” to track the overal results and execute the normal events (on correct etc.)?
Also handling the modes of the session (e.g., Review mode) must be taken into account.
Please check this sample project custom_question.approj (380 KB)
ActivePresenter doesn’t support select fields, so I use radio buttons.
You can see the script in On Click event of Submit button.
Please note that the script only shows feedback to the user, it’s not possible to change the report data except the total score (in case you use SCORM, xAPI or HTTP report).
thank you very much. The structure of the question is correct.
Setting a score for the “slide” would be critical to us. Would it be possible to use some kind of “hidden question” to set a score that contributes to overall success of the presentation?
in the meantime I was able to realize the question with scripting. It will need some further fine tuning (review mode etc.) but in general it works. Thank you for that.
Now I have a slide with 11 questions, each of them consists of a combination of one drag&drop element with several fill in the blank elements. Actually the user has to fill in the gaps in mathematical formulas. Sample:
Question 1: [Drop text 1 here] Formula = [m] x [g]
Question 2: [Drop text 2 here] Formula = [q] / [t] = [m] x [g]
Each questions should be evaluated separatly once the user “submits the slide”. The slide is marked correct if all 11 questions are correct.
Do you have any suggestion how to realize this in AP?
Thanks in advance and best wishes
// To check if a drag-drop is correct:
// find the drop target in which a drag source is dropped
var dropTarget = prez.object('a drag source name').dropTarget;
var dropCorrect = false;
if (dropTarget && dropTarget.name() == 'correct drop target name')
dropCorrect = true;
// To check if two blanks are correct
var blank1 = prez.object('blank 1 name').value();
var blank2 = prez.object('blank 2 name').value();
var blankCorrect = false;
if ((blank1 == 'm' && blank2 == 'g') || (blank1 == 'g' && blank2 == 'm'))
blankCorrect = true;
// question correct
var questionCorrect = dropCorrect && blankCorrect;
thank you very much. Could you please provide me a hint how to identify if a d&d is incomplete? As far as I see the dropTarget is undefined in case the answer is wrong or incomplete.
thank you very much. This worked fine so far and I was able to complete the question. Now I need to do some further fine tuning (e.g. providing feedback via object states).
I found that when switching between slides the text input elements loose the user’s input while the d&d elements keep their positions. Is this something I could influence?
Also I wonder if my scripts could access the list of correct values for each element?
Is it possible to use the slide’s onload event to define an focusout-event for all input fields in the slide?
I tried $(prez.slide.node).find(‘input’) to get a list of all input fields in the slide. This works but submit() does not work on the resulting objects. I’d asume that I need to receive the objects by using your API rather than by using Jquery. Do you provide any method for this?
Many thanks and best wishes