I know this is easy

Hi Jamie, this can be done but it's not a piece of cake.So, when you first come to the page, you've got a question and a Submit button, but you don't have a Hint button or Next button yet. The Hint button appears if the you miss the question. The Hint button disappears again if you use all three hints. The Next button appears if the you get the question right or if you use all three hints. You don't get to go back to previous questions. Am I understanding correctly?So:Un-check initially visible for your Hint button.Un-check initially visible for your Next button.In your Variable Manager, create a Variable named HintsLeft.Then, attach this action to your page:Name: Set HintsLeft = 3On: ShowAction: Modify VariableTarget: Hints LeftValue: 3Modification Type: Set Variable ContentsSo when you first get to the page, HintsLeft gets set to 3. You need these actions attached to your Submit button:A Process Question Action (you should already have this one.)An Action to Show your Hint button, with multiple conditions in the Conditions tab: the question's associated variable is incorrect, and HintsLeft is greater than 0.Show your Next button, on the condition that the question's associated variable is correct.So, when you click the Submit button, the question gets processed, and the Hint button gets shown if you get it wrong and you have hints left, and the Next button gets shown if you get it right.You need these actions attached to your Hint button:A Display Message Action for Hint 1, on the condition that HintsLeft=3A Display Message Action for Hint 2, on the condition that HintsLeft=2A Display Message Action for Hint 3, on the condition that HintsLeft=1Subtract 1 from HintsLeft (Action: Mod. Variable, Target: HintsLeft, Value: 1, Mod Type: Subtract.)Show Next button on the condition that HintsLeft=0Hide Hint button on the condition that HintsLeft=0So when you click the Hint button, you see one of three messages depending on how many hints you had left, and then you've burned one of your hints, and if you don't have any hints left, then the Next button gets shown and the Hint button gets hidden.Edited By: Ryan Herr on 2008-5-22 15:30:39

Discussions have been disabled for this post