0
我有這種情況:LiveCycle javascript validation
有一個數字字段,它必須填充10個帶編號的用戶ID。 我需要自動檢查該ID的存在。 (p7 * 7)+(p7 * 7)* +(p8)* 3)+(p9 * 6)]%11 = p10 其中p1是第一個數字,p2是第二個數字等等
我是javascript中的新成員,所以將非常感謝您的幫助。 以下是我已經試過:
if ((((this.position(1) * 2) + (this.position(2) * 4) + (this.position(3) * 8) + (this.position(4) * 5) + (this.position(5) * 10) + (this.position(6) * 9) + (this.position(7) * 7) + (this.position(8) * 3) + (this.position(9) * 6)) % 11) == this.position(10))
{
}
else
{
xfa.host.messageBox("Wrong ID", "ERROR!", 1, 0);
}