How can I retrieve dynamic CRM custom field values using java-script and perform some calculation with the values retrieved and put it to another custom field?
You can refer to them as to any other field on any form.
// assuming the name of your field is *Konrad*
var coder = Xrm.Page.getAttribute(“new_Konrad”).getValue();
However, if you wish to access the same data field from the context of an IFRAME populated by a web resource, you need to refer to the parent of your location by prefixing the line above by the following.
// assuming the name of your field is *Konrad*
var coder = window.parent.Xrm.Page.getAttribute(“new_Konrad”).getValue();
I can add that it's all documented in the SDK but I also need to admit that I'm not visiting it all too frequently myself either.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With