Animating form elements with jQuery

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 ...

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.