Quantcast
Channel: Forum CRM Development
Viewing all articles
Browse latest Browse all 1000

CRM 2011 field On Change Event Javascript getting Value using XRM.Page.getAttribuites(fieldName).getValue()

$
0
0

Hi I am experiencing a strange behaviour when I try to get a field value Xrm.Page.getAttribute(totalAmountFieldName).getValue(); on change. It gives the previous value not the current changed value.

but If i use  window.crmForm.all.totalAmountFieldName.DataValue; this gives the correct change value.

Ex :

Total Amount = 100

Changed to 200 and the Onchange event fires I get 100 from Xrm.Page.getAttribute(totalAmountFieldName).getValue(); But window.crmForm.all.totalAmountFieldName.DataValue gives the correct value 200.

Why is it behaving different? Can some one help.


Thanks, Future MVP

Viewing all articles
Browse latest Browse all 1000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>