O'Reilly logo

Microsoft Dynamics CRM 2011 Scripting Cookbook by Nicolae Tarla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Combining events

In the previous recipes of this chapter we have seen some examples on working with the form UI based on either a predefined rule on form load, or on a field's onchange event. This example will focus on putting it all together in order to achieve a comprehensive result that actually can satisfy a realistic business rule.

Getting ready

Let's go back to the solution that we have worked with in the previous recipe. We will be using the same Contact form to implement this example. Following the Form load event usage recipe described earlier in this chapter, we can easily realize that it only works first time when the user loads a contact. How about if the user changes a value on the form? We have touched on the functionality a little ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required