これが私のコードです:
alert ("Current: " + crmForm.all.new_currentdate.DataValue);
alert ("Previous value: " + crmForm.all.new_date.DataValue);
if(crmForm.all.new_currentdate.DataValue != crmForm.all.new_date.DataValue )
{
crmForm.all.new_otherValue.DataValue = null;
alert("Nulling other value");
}
ご覧のとおり、最初に値を確認するためにアラートを入れましたが、同じです。ただし、それはまだIFステートメントに入っており、3番目のアラート(他の値をヌルにする)も表示されます。何か案は?これはMSDynamicsCRMにあります。
ありがとう