Q/A: What happens to the UI when you hide a field?

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.

Walkthrough

Using a simple Business Rule we will conditionally show or hide the Main Phone field.

image

Here we see it shown by default.

image

Here we invoke our rule by populating the Fax field.  Note that the whitespace has collapsed itself.

image

The same is true when you use JavaScript to hide an otherwise visible field.  Here we have a simple script to hide the Main Phone field.

image

On load of the form we are presented with a clean interface without extraneous white space.

image

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s