Variables and Values - A dilemma

A Variable DilemmaI have written quite a lot here so there is minimal confusion about my dilemmaSetting the sceneI have only just started to get my head around variables and values but am unable to make them work. I’m wondering if anyone is able to help.I have created a short assessment (6 questions) in Lectora, with a heavy emphasis on the design look and feel.For example: One of the assessment questions is multiple choice (with more than one correct answer) an includes 5 responses.For design, engagement and interaction purposes, I have created visuals for each of the responses.• Each of the 5 responses (radio buttons) has images placed above them in the form of 2 buttons (these buttons are not used as buttons though – just to contain images and text).• For this example we’ll call them Button 1 and Button 2• On entering the page, the user views the images (with no text) above each of the radio buttons which consists of Button 1Button 1o Normal state Image – A pictureo Clicked Image – The picture with texto Mouseover image – The picture with text *These last 2 are the sameThe purpose of Button 1 is for the user to interact with the responses before making a choice i.e. The user can place their mouse cursor (mouse enter) over the image to reveal the choices (in the form of text). When they remove the mouse (mouse exit) from the text and image, the Button 1 reverts back to the Normal State Image image.• Button 2 is used to show text once the user makes a choice or choices by selecting the corresponding radio button/s (The text is the same text that is presented in Button 1 when the user places their mouse over the original image). Button 2o Normal state Image – Texto Clicked Image –texto Mouseover image –text The text (Button 2) remains visible while the radio button is selected – when the radio button is deselected, it reverts back to Button 1, with image only.To allow this interaction to happen, in the properties of each of the radio buttons, I have selected:On Select ChangeAction : Toggle Visibility StateTarget: Button 1*Both buttons are visible but Button 1 is layered above Button 2. On selecting the radio button choice, Button 1 disappears to reveal Button 2. On deselecting, Button 1 appears again.The DilemmaLectora normally records user choices for tests and test questions. i.e If a user makes a selection for question 2, then moves on to other questions, they are able to go back to question 2 to find that the choices they have made are still recorded (unless otherwise specified by the creator). This is not the issue. Because I have attached Images to each of the responses in the forms of Button 1 and Button 2, I’ve been trying to reflect these choices in the buttons without success.i.e. Using the above example: If a user makes a selection for question 2 (The image or Button 1 is replaced by the text choice or Button 2), then moves on to other questions, when they go back to question 2, the choice they have made is still recorded (the radio button has been selected) BUT the corresponding Text (Button 2) has reverted back to the original image (Button 1).This leaves the toggle state of the 2 buttons in reverse, if that makes any sense.My attempt to solve this problemTo get around this I decided to tackle variables and values properly for the first time (after reading all the Help information), without success.What I’ve done• I’ve created a variable called ImageSelected with an initial value of True• On Button 1(image) I’ve added 2 actions(please ignore undefined - this doesn't mean anything)Action 1 o On: Hi de o undefinedAction Modify Variable o Target: Imag eSelected o Value: False o Modification Type: Set Variable ContentsAction 2 o On: Sh ow o undefinedAction: Modify variable o Target: Imag eSelected o Value:  True o Modification Type: Set Variable Contents• On Button 2 (selected text) I’ve added 2 actionsAction 1 o On: Hi de o undefinedAction: Modify variable o Target: Imag eSelected o Value:  True o Modification Type: Set Variable Contents Action 2 o On: Sh ow o undefinedAction: Modify variable o Target: Imag eSelected o Value:  Falseo Modification Type: Set Variable ContentsI also added 2 actions to the page (with the question on it), each with conditionsAction 1 o On: Sh ow o undefinedAction: Toggle Visibility State o Target: Butt on 1Condition: Perform action ONLY if the following is TRUE o Variable: Im ageSelected o Relationship:   Contains o Value:  False Else o Action: Visi bility State o Target: Butt on 2Action 2 o On: Sh ow o undefinedAction: Toggle Visibility State o Target: Butt on 2Condition: Perform action ONLY if the following is TRUE o Variable: Im ageSelected o Relationship:   Contains o Value:  True Else o Action: Togg le Visibility State o Target: Butt on 1If anyone is able to help me with this, I will consider you the Muhammed Ali of Lectora.Edited By: Babbott on 2008-12-17 21:6:25

Discussions have been disabled for this post