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

Custom Java - Not working

$
0
0

I am trying to get the value of a field to display if its below 7.00


Although I keep getting an error every time I try to run it, but can't see where I'm going wrong?

Here's the code:

Function checkmargin()
{
    var margin = Xrm.Page.getAttribute("ro_margin").getValue()
    if (margin < 7.0)
    {
        //display the value within a warning box
        alert("Margin lower than Target", null, null, "WARNING", 500, 200);
    }
}


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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