This javascript cut & paste code snippet will only let the viewer enter their name into the form if they indicate they agree to the terms by first clicking the "I Agree radio button". If viewer agrees they may enter their name. If they disagree they will not be able to enter, or edit their name. When viewer disagrees the input box is locked. Useful if you require your visitors to accept a disclaimer before downloading software, or visiting a members-only section.


Insert this code into your HEAD of HTML

Insert this code into your BODY section


You can only enter your name if you agree to the terms. (Demo Only)

I agree
I disagree
Please enter your name:


Simply Cut and Paste Script code
Be sure to properly place script position in HEAD & BODY sections of html 

This script has been in the DesignerWiz.com Public Library.