I have a web resource which is html/javascript and contains a button along with it's action code.
I have 2 questions
1. The code in the web resource can't access any xrm objects on the main form. For example I want to get a field value using the xrm getvalue().
I've tried both these but they both come back with the error '{fieldname} is undefined'
a. Xrm.Page.getAttribute({fieldname}).getValue();
b. parent.Xrm.Page.getAttribute({fieldname}).getValue();
2. In the web resource is it possible for the onclick action to call a javascript action which is in a javascript resource on the main form?
Thanks
*This post is locked for comments
I have the same question (0)