Prevent changing of answers

There are several things you can do depending on exactly what you want. If you want to disable the back button and all associated key strokes then try this tip from my book on Javascript Secrets.


1.  How to Disable the Browser Back Button


When someone clicks the IE back button, this code prevents the page from showing and returns immediately to the page where the back button was clicked.


· Click the "Add External HTML" button on the toolbar.


· From the Object Type dropdown menu, select "Meta tags".


· In the Custom HTML box type the following code:


Thanks to Lex_Tensions


If you want to prevent someone from changing answers on a page once they have done something like click a button or come back to the page, then create a transparent shape using the Lectora Shapes bar. Cover your entry box and make it Always On Top. Make it initially not visible so that they can enter stuff in the box. Then, when they click a button to get feedback, show the shape. Also add to the page and On Show, Show the shape, Condition: Question_xxxx Is Not Empty. That way if someone ever gets back to the page the invisible shape will cover the entry box if they had entered something before.


 

Discussions have been disabled for this post