On 2011-04-05 20:18:48 -0700, dvfx <damienvfx (AT) gmail (DOT) com> said:
Quote:
Is there a way to display the name of the field if the field is
empty? If there was any way to have it display as it does in layout
mode, that would be perfect. |
Yes. In FM10 or above, you can put whatever you want into the field
comments, such as "First Name" (I do this because my field name is
"NameFirst"), then make the field an auto-enter calc to show the field
comments unless there is content in the field.
Case(IsEmpty(Self);
FieldComment ( Get ( FileName ) ; Get (FieldName ) )
; Self) <- this calc could be wrong, it was months ago
Then whenever the field is empty, it will trigger the calc, and "First
Name" will show up.
Be aware not to use this on fields where it might not be obvious what
the field is later on when it's filled in. Names are obvious, but some
fields always need a visible label, even when they have contents.
That's why I stopped using the above shortly after I started. It turned
out that distinguising among a bunch of fields on a screen after the
labels had been written over with data was too hard.
--
Lynn Allen
--
www.semiotics.com
Member FBA
FM 10 Certified Developer