-
Book Overview & Buying
-
Table Of Contents
Microsoft Dynamics CRM 2011 Scripting Cookbook
By :
Have you ever had a situation where, based on business rules, a field must become required of certain form values aligned to the rule? Let's say for example, if you select a ship to P.O. box, but there is no P.O. box information filled, then you must act and warn the user.
For the purpose of this recipe I will largely simplify this example. I will assume that we have the validation in place, and the field that needs to be filled is the Middle Name field. My validation will mark this field as Business Required on the form, but with a large number of fields, and especially when a lot of them are marked as Business Required, a small red star next to the name might not capture the user's attention that easily.
I could just bring up a pop-up window and let the user know that the field needs to be filled in. But that's so intrusive and so old school. With the new interactive sites nowadays, people are starting to get used to other ways of highlighting form elements...
Change the font size
Change margin width
Change background colour