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

Unable to Access New Field by Javascript

$
0
0

I have a header full of fields that display certain information and I need to create a dynamic URL with that information. I have a field called new_programs which I am able to access by the javascript console by

frames[0].Xrm.Page.data.entity.attributes.get('new_programs').getValue();


and it correctly returns the desired value. However, I created a new field for my dynamic URL with the name new_codelookup, and running 

frames[0].Xrm.Page.data.entity.attributes.get('new_codelookup').getValue();


does not work. It is in the field, active, set to URL, single line of text, etc, and shows up in the header, but when I load that form live and view it and run that bit of javascript, says it can't find that object. Every other object that was existing can be accessed by that except any new fields that I make.

Any help would be very appreciated. Thank you!


Viewing all articles
Browse latest Browse all 55831

Trending Articles



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