Copying field value (including dropdown choice) to another field
Hi
I am trying to solve a problem where I am trying to copies value from one field to anothe if a check box has been checked.
Here are the fields
Acct1Objective Dropdown box
Acct1Objectibe_Note Text Box
Acct1Time Dropdown box
Acct1Risk Dropdown box
Acct1Risk_Note Text Box
Acct2Objective Dropdown box
Acct2Objectibe_Note Text Box
Acct2Time Dropdown box
Acct2Risk Dropdown box
Acct2Risk_Note Text Box
If the check box "MirrorAccount " is checked, we would like all the Acct1 fields value to populate Acct2 fields
in the checkbox mouse up, I selected to run Java Script and added this code
if(this.getField("MirrorAccount").value=="YES")
this.getField("Acct2Objective").value = this.getField("Acct1Objective").value;
else if(this.getField("MirrorAccount").value=="YES")
this.getField("Acct2Objective_Note").value = this.getField("Acct1Objective_Note").value;
else if(this.getField("MirrorAccount").value=="YES")
this.getField("Acct2Time").value = this.getField("Acct1Time").value;
else if(this.getField("MirrorAccount").value=="YES")
this.getField("Acct2Risk").value = this.getField("Acct1Risk").value;
else if(this.getField("MirrorAccount").value=="YES")
this.getField("Acct2Risk_Note").value = this.getField("Acct1Risk_Note").value;
When I check the box, the scrip runs but only the text boxes populate. The drop down doesnt populate and and still show default values.
Is this possible?
Thanks