Radio Buttons
May 14, 2008 12:00 AM
Hopefully I can help clarify your questions :). I come from a graphic design/programming/educational technolgy background to give context.First you want to set up a variable called something like Attempts, using the Variable Manager. Set the initial value to 0.I'm going to assume that you want all the questions to use the same amount of tries. For this example I am going to use 2 as the threshold. So set up another variable in the variable manager called Threshold.On your question page you should have the following Objects:- An Inivisible Button, from now I'll refer to it as (InvBtn).- A Submit Button, from now I'll refer to it as (SubBtn).- A Question, with a variable of Question_0001- A Retry Text Box, from now I'll refer to it as (TxtRetry)- A Correct Text Box, from now on I'll refer to it as (TxtCorrect);- A Sorry Text Box, from now on I'll refer to it as (TxtSorry);The first Action on the page would be:On: ShowAction: Modify VariableTarget: AttemptsValue: 0Modification Type: Set Variable ContentsThis sets the Attempts variable to zero. You just want to reset this counter on every question so you don't have a lot of overhead with extra variables.The next Action on the page makes sure the button covering the selections is hidden, or you an just uncheck "Initially Visible":Name: Hide Invisible ButtonOn: ShowAction: HideTarget: InvBtn[/CODE]This next set of actions are for the submit button. Needs to be in this order.[CODE]Name: Prevent SelectionOn: Mouse ClickAction: ShowTarget: InvBtn[/CODE][CODE]Name: Add Another AttemptOn: Mouse ClickAction: Modify VariableTarget: AttemptsValue: 1Modification Type: Add to Variable[/CODE][CODE]Name: Show Retry TextOn: Mouse ClickAction: ShowTarget: TxtRetryCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE][CODE]Name: Show Correct TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Correct[/CODE][CODE]Name: Show InCorrect TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Greater Than -> VAR(Threshold)[/CODE][CODE]Name: Reactive SelectionsOn: Mouse ClickAction: HideTarget: InvBtnCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE]Ok let me know if this clarifies things.... or mucks them up :)Edited By: Xithis on 2008-5-14 13:22:23[CODE]Name: Hide Invisible ButtonOn: ShowAction: HideTarget: InvBtn[/CODE]This next set of actions are for the submit button. Needs to be in this order.Name: Prevent SelectionOn: Mouse ClickAction: ShowTarget: InvBtn[/CODE][CODE]Name: Add Another AttemptOn: Mouse ClickAction: Modify VariableTarget: AttemptsValue: 1Modification Type: Add to Variable[/CODE][CODE]Name: Show Retry TextOn: Mouse ClickAction: ShowTarget: TxtRetryCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE][CODE]Name: Show Correct TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Correct[/CODE][CODE]Name: Show InCorrect TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Greater Than -> VAR(Threshold)[/CODE][CODE]Name: Reactive SelectionsOn: Mouse ClickAction: HideTarget: InvBtnCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE]Ok let me know if this clarifies things.... or mucks them up :)Edited By: Xithis on 2008-5-14 13:22:23[CODE]Name: Prevent SelectionOn: Mouse ClickAction: ShowTarget: InvBtn[/CODE]Name: Add Another AttemptOn: Mouse ClickAction: Modify VariableTarget: AttemptsValue: 1Modification Type: Add to Variable[/CODE][CODE]Name: Show Retry TextOn: Mouse ClickAction: ShowTarget: TxtRetryCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE][CODE]Name: Show Correct TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Correct[/CODE][CODE]Name: Show InCorrect TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Greater Than -> VAR(Threshold)[/CODE][CODE]Name: Reactive SelectionsOn: Mouse ClickAction: HideTarget: InvBtnCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE]Ok let me know if this clarifies things.... or mucks them up :)Edited By: Xithis on 2008-5-14 13:22:23[CODE]Name: Add Another AttemptOn: Mouse ClickAction: Modify VariableTarget: AttemptsValue: 1Modification Type: Add to Variable[/CODE]Name: Show Retry TextOn: Mouse ClickAction: ShowTarget: TxtRetryCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE][CODE]Name: Show Correct TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Correct[/CODE][CODE]Name: Show InCorrect TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Greater Than -> VAR(Threshold)[/CODE][CODE]Name: Reactive SelectionsOn: Mouse ClickAction: HideTarget: InvBtnCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE]Ok let me know if this clarifies things.... or mucks them up :)Edited By: Xithis on 2008-5-14 13:22:23[CODE]Name: Show Retry TextOn: Mouse ClickAction: ShowTarget: TxtRetryCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE]Name: Show Correct TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Correct[/CODE][CODE]Name: Show InCorrect TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Greater Than -> VAR(Threshold)[/CODE][CODE]Name: Reactive SelectionsOn: Mouse ClickAction: HideTarget: InvBtnCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE]Ok let me know if this clarifies things.... or mucks them up :)Edited By: Xithis on 2008-5-14 13:22:23[CODE]Name: Show Correct TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Correct[/CODE]Name: Show InCorrect TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Greater Than -> VAR(Threshold)[/CODE][CODE]Name: Reactive SelectionsOn: Mouse ClickAction: HideTarget: InvBtnCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE]Ok let me know if this clarifies things.... or mucks them up :)Edited By: Xithis on 2008-5-14 13:22:23[CODE]Name: Show InCorrect TextOn: Mouse ClickAction: ShowTarget: TxtCorrectCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Greater Than -> VAR(Threshold)[/CODE]Name: Reactive SelectionsOn: Mouse ClickAction: HideTarget: InvBtnCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE]Ok let me know if this clarifies things.... or mucks them up :)Edited By: Xithis on 2008-5-14 13:22:23[CODE]Name: Reactive SelectionsOn: Mouse ClickAction: HideTarget: InvBtnCondition Tab:Perform action Only if the following is True:ALL of the followingAttempts -> Less Than Or Equal -> VAR(Threshold)Question_0001 -> Is Not Correct[/CODE]Ok let me know if this clarifies things.... or mucks them up :)Edited By: Xithis on 2008-5-14 13:22:23
Discussions have been disabled for this post