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

JavaScript onLoad of quick create form

$
0
0

Hello all,

I am trying to run some custom JavaScript on load of a quick create form. Here is an example of the code i am using.

var goalName = Xrm.Page.getAttribute("enc_name");
goalName.setValue("test");

The error i am getting is the following: "TypeError: Cannot read property 'setValue' of null"

I tried to debug my code in the browsers console, but it seems to be working on all levels.

Can anyone assist me with this?

Thank You!

Leibish Ringel


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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