I pasted the code into the java box and got the following error:
SyntaxError: missing } in compound statement
29: at line 30
Last 2 lines of code are:
Property Crime") .readonly =true;
} else {
--
*Lance Brown*
150 Lake Carol Drive
West Palm Beach, FL 33411
T. (561) 686-9679
E. lancebrown13@gmail.com
*(This e-mail was checked by McAfee Virus Scan)*You're missing the curly braces at the end of that script
I will suggest that the easiest way to get this to work for a beginner is to copy this code exactly as it is posted below and paste it in the javascript editor for the first radio button:
this.getField("Juvenile Address").readonly =true;
this.getField("Juvenile Residence Phone").readonly =true;
this.getField("Juvenile Business Phone").readonly =true;
this.getField("Juvenile Notified By").readonly =true;
this.getField("Juvenile Date").readonly =true;
this.getField("Juvenile Time").readonly =true;
this.getField("Juvenile Disposition").readonly =true;
this.getField("Juvenile Released To").readonly =true;
this.getField("Juvenile Released Date").readonly =true;
this.getField("Juvenile Released Time").readonly =true;
this.getField("Juvenile By Name").readonly =true;
this.getField("Juvenile Reason").readonly =true;
this.getField("Juvenile School Attended").readonly =true;
this.getField("Juvenile Grade").readonly =true;
this.getField("Juvenile Description of Property").readonly =true;
this.getField("Juvenile Value of Property").readonly =true;
this.getField("Juvenile Check Parent").readonly =true;
this.getField("Juvenile Check Legal Custodian").readonly =true;
this.getField("Juvenile Check Other").readonly =true;
this.getField("Juvenile Check Defendant").readonly =true;
this.getField("Juvenile Check Defendant Parents").readonly =true;
this.getField("Juvenile Check Yes 2").readonly =true;
this.getField("Juvenile Check Yes 1").readonly =true;
this.getField("Juvenile Check Yes Property Crime").readonly =true;
this.getField("Juvenile Check No Property Crime").readonly =true;
Then do the same procedure for this other code; copy and paste it in the other radio button:
this.getField("Juvenile Address").readonly =false;
this.getField("Juvenile Residence Phone").readonly =false;
this.getField("Juvenile Business Phone").readonly =false;
this.getField("Juvenile Notified By").readonly =false;
this.getField("Juvenile Date").readonly =false;
this.getField("Juvenile Time").readonly =false;
this.getField("Juvenile Disposition").readonly =false;
this.getField("Juvenile Released To").readonly =false;
this.getField("Juvenile Released Date").readonly =false;
this.getField("Juvenile Released Time").readonly =false;
this.getField("Juvenile By Name").readonly =false;
this.getField("Juvenile Reason").readonly =false;
this.getField("Juvenile School Attended").readonly =false;
this.getField("Juvenile Grade").readonly =false;
this.getField("Juvenile Description of Property").readonly =false;
this.getField("Juvenile Value of Property").readonly =false;
this.getField("Juvenile Check Parent").readonly =false;
this.getField("Juvenile Check Legal Custodian").readonly =false;
this.getField("Juvenile Check Other").readonly =false;
this.getField("Juvenile Check Defendant").readonly =false;
this.getField("Juvenile Check Defendant Parents").readonly =false;
this.getField("Juvenile Check Yes 2").readonly =false;
this.getField("Juvenile Check Yes 1").readonly =false;
this.getField("Juvenile Check Yes Property Crime").readonly =false;
this.getField("Juvenile Check No Property Crime").readonly =false;
Just make sure that both radio buttons are have the same name but chenge the export values. For example, in the first radio button you can leave the export value as "Choice1", and in the second radio button "Choice2".