Avatar

Level 10

You need to remove the script from each drop-down change event and put all the script on the description calculate event. For example,

// form1.NonCompliancePage.subform2.description::calculate - (JavaScript, client)

var str = "";

if (form1.recordKeepingPage.RecordKeeping.rk_BusName.rawValue == "Required Records - No business name listed" || form1.recordKeepingPage.RecordKeeping.rk_BusName.rawValue == "Required Records - Partial business name listed") {

          if (form1.recordKeepingPage.RecordKeeping.rk_BusName.rawValue == "Required Records - No business name listed") {

                    str = "Required Records-No business name listed" + "\n";

          }

          else {

                    str = "Required Records - Partial business name listed" + "\n";

          }

}

if (form1.recordKeepingPage.RecordKeeping.rk_StAddress.rawValue == "No" || form1.recordKeepingPage.RecordKeeping.rk_StAddress.rawValue == "Partial address" || form1.recordKeepingPage.RecordKeeping.rk_StAddress.rawValue == "P.O Box only") {

          if (form1.recordKeepingPage.RecordKeeping.rk_StAddress.rawValue == "No") {

                    str =  str + "Required Records-No address of the application listed" + "\n";

          }

          else {

                    if (form1.recordKeepingPage.RecordKeeping.rk_StAddress.rawValue == "Partial address") {

                              str = str + "Required Records-Partial address listed" + "\n";

                    }

                    else {

                              str = str + "Required Records-PO Box only listed" + "\n";

                    }

          }

}

this.rawValue = str;

Steve