我有一个表单,它有几个名为“transType”的组,这些组中有一个文本字段和一组 3 个单选按钮。每个单选按钮组都有 Yes、No 和 Resolved 的值。我在顶部有一个单选按钮组,当单击时,页面上的相应按钮也被选中,例如我单击顶部组上的“否”,并且下面的所有“否”字段都被选中。我正在使用动作生成器来实现这一点,但这似乎很乏味,我必须为每个值都这样做。以下是现在的脚本:
form1.#subform[0].transType[0].markAll::change - (JavaScript, client)
if (this.rawValue == "1") {
this.resolveNode("transType[1].exeError").rawValue = "No";
this.resolveNode("transType[2].newEnrol").rawValue = "No";
this.resolveNode("transType[3].enrolReq").rawValue = "No";
this.resolveNode("transType[4].immPinChange").rawValue = "No";
this.resolveNode("transType[5].pinChange").rawValue = "No";
this.resolveNode("transType[6].loanProc").rawValue = "No";
this.resolveNode("transType[7].contribChange").rawValue = "No";
this.resolveNode("transType[8].allocChange").rawValue = "No";
this.resolveNode("transType[9].allocChange403b").rawValue = "No";
this.resolveNode("transType[10].transfTrans").rawValue = "No";
this.resolveNode("transType[11].confEndBal").rawValue = "No";
this.resolveNode("transType[12].confTarAlloc").rawValue = "No";
this.resolveNode("transType[13].loanReq").rawValue = "No";
this.resolveNode("transType[14].withdrawReq").rawValue = "No";
}
我在Adobe论坛发了LiveCycle,但是Adobe论坛基本没用。有没有更简单的脚本可以写?也许是一个数组?我在 JavaScript 方面有点不熟练,但我可以一瘸一拐地走来走去。蒂亚!!!