« Improved in GoldMine 7.x - Editing/Deleting of Activities | Main | Customizing your calendar display »

Turn a field label red if a field is empty

There are many ways to encourage users to fill out fields...  Here's a very non-draconian and non-invasive way to encourage the users to fully fill out a record.  This method will make the field label red if the field is left blank, therefore drawing attention to the field!

In our example we'll use the Company field; however, this can be done for any field in the top-half of the screen or the Fields tab.  First, do a Right-Click | Properties on the company field while logged in as a user with 'Master' rights.  Then go to the Color tab.

Click on the Expression radio box under Label Color and enter this:

iif(trim(company) < ' ', 255, -1)

If you are using a different field you'll need to substitute that field name for 'company'.  The 255 is the color red while the -1 is the default label color.

Color1

Then OK.   

So now it's red:

Color2

Now it isn't!

Color3

Happy GoldMining!

Comments (3)

Daniel Flach:

Hi, Great tip - but...

Is there any reason why this wouldn't work on a user designed field. I enter iif(trim(UDOB)

Any ideas? Thanks.

Chad Smith:

Reference the field by the table name and field name, e.g. contact2->udob. This is not necesasry for contact1 fields, however, would be for contact2 fields.

Daniel Flach:

Hi Chad thanks for the reply.

Yes this works! Except - (and please tell me if I am wrong) when the contact2 field is Date formatted (ie Type D). In this case I get the same error - dBase expression is invalid.

Can you check this and let me know if there is any work around. (One of my fields is a user-defined date-formatted custom field and I would love to have this behave like the others).

Thanks for your help.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on November 28, 2006 9:17 PM.

The previous post in this blog was Improved in GoldMine 7.x - Editing/Deleting of Activities.

The next post in this blog is Customizing your calendar display.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34