2014-11-22 67 views
0

我的if語句不適用於設置爲在Adobe Livecycle Designer中計算的數字字段,我無法弄清楚。我所有的字段名都是準確的,並且這些字段被設置爲數字。它保持顯示值0.Adob​​e Livecycle設計器Javascript計算

任何幫助或指導表示讚賞。

if (RadioButtonList.btn2.selectedIndex == 0 || RadioButtonList.btn4.selectedIndex == 0) { 
this.rawValue = ((Table3.Row1.Cell3 * NumericField1)/Table3.Row1.Cell4); 
} else if (RadioButtonList.btn1.selectedIndex == 0 || RadioButtonList.btn3.selectedIndex == 0) { 
if (DropDownList1.rawValue === "Concierge") { 
    this.rawValue = ((Table3.Row1.Cell3 * NumericField1) * 0.06); 
    } 
if (DropDownList1.rawValue != "Concierge" && DropDownList1.rawValue != "") { 
    this.rawValue = ((Table3.Row1.Cell3 * NumericField1) * 0.04)/Table3.Row1.Cell4; 
    } 
} else {this.rawValue = 0;} 

回答

0

如果問題仍然存在,我建議你如下: 選擇單選按鈕列表和對象調色板 - >綁定選項卡驗證您有每個單選按鈕值。 然後重寫你的代碼看起來它與此類似:

if (RadioButtonList.rawValue == 2 || RadioButtonList.rawValue == 4) { 
    this.rawValue = ((Table3.Row1.Cell3 * NumericField1)/Table3.Row1.Cell4); 
} 
else if (RadioButtonList.rawValue == 1 || RadioButtonList.rawValue == 3) { 
    if (DropDownList1.rawValue === "Concierge") { 
     this.rawValue = ((Table3.Row1.Cell3 * NumericField1) * 0.06); 
    } 
    if (DropDownList1.rawValue != "Concierge" && DropDownList1.rawValue != "") { 
     this.rawValue = ((Table3.Row1.Cell3 * NumericField1) * 0.04)/Table3.Row1.Cell4; 
    } 
} 
else { 
    this.rawValue = 0; 
} 

至於每個按鈕我選擇了一些按鈕的值。