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 ...
Get Microsoft Dynamics CRM 2011 Scripting Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.