I use the following code for getting the CRM form field value in HTML webresource . But its not working.
<html>
<head>
<title></title>
<script src="/WebResources/ClientGlobalContext.js.aspx" type="text/javascript"></script>
<script src="/WebResources/out_jquery1.9.0.min.js" type="text/javascript"></script>
<script type="text/javascript">
function test() {
alert('Test5')
var asdf = window.parent.XRM.Page.getAttribute("new_checkparentchildcasetype").getValue();
alert('asdf is ' + asdf)
}
</script>
</head>
<body style="word-wrap: break-word;">
<button type="button" class="button" onclick="test()">Click</button>
</body>
</html>
How can I get the value in Html web resource ?






