Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Simple JavaScript... how to set value of a field with a variable

$
0
0

In this post we have a function for calculate the age of a contact based on the birthdate field.  The poster updates the label of the birthdate field with the "age" variable.  I want to update the "age" field with the "age" variable.  I don't know JavaScript, but gave a go at deciphering what's there thought it might be:

    Xrm.Page.getAttribute("age").setValue(age);

Which doesn't work.  I gave it a try. ;-)

In this case age is the field name and the variable name.


Viewing all articles
Browse latest Browse all 55831

Trending Articles



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