I’ll often get requests to make sure we “clean-up” white space if we are conditionally showing and hiding fields in the middle of a form. The good news here is that this happens automatically… whether you’re using CRM’s Business Rules engine or writing your own custom client script the CRM UI will clean up those unsightly empty spots with whatever was below it.
Using a simple Business Rule we will conditionally show or hide the Main Phone field.
Here we see it shown by default.
Here we invoke our rule by populating the Fax field. Note that the whitespace has collapsed itself.
On load of the form we are presented with a clean interface without extraneous white space.