Re: Way to make "Disappearing Field Labels"?
- From: Helpful Harry <helpful_harry@xxxxxxxxxxxxxxxx>
- Date: Tue, 27 Feb 2007 18:30:11 +1300
In article <1172552274.985398.221650@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Carpeflora" <lara@xxxxxxxxxxxxxxxxxxxxx> wrote:
On Feb 26, 10:23 pm, "Grip" <g...@xxxxxxxxxxxxx> wrote:
I feel like I've seen this feature somewhere, maybe it was in a
dream.
I'd like to have the field label appear _in_ the field, then disappear
when the field is entered and stay disappeared if there's a value in
the field, but reappear if there's not. I want to do this to conserve
screen estate and 'cause I think it'd be cool.
I've played around with layering the field/label with and without
fill, but I haven't gotten anywhere with that. I could add a calc
field for every field I want this effect on, but that seems like a lot
of extra fields. I think I could also do it with EventScript, but
only on text defined fields.
Any ideas on an elegant solution without the use of a plugin?
just a thought to add auto entry for initial field contents to equal
get(activefieldname)...or similar. Not sure of syntax...
Auto-enter calculations are performed when the record is created, so
there wouldn't be any "active" field to get the name of, but it is a
good idea and probably the easiest way to do it.
You could set the auto-enter calculations to the field name by
manually typing it in. The set the field's format so that it selects
the text when clicked on or tabbed to (Format -> Field Format in the
Behaviour section) so that users simply type over the top of the
auto-entered data or any already entered data.
It will of course cause a problem if you need to check for empty fields
in calculations or scripts since IsEmpty will be of no use - you would
have to remember to check for the field name instead (as in the below
calculation).
The only hiccups will be:
- Container fields since they can't have textual data, for
these you'll need to use a separate Calculation field.
- Calculation fields , but you can change the calculation
to something like:
If (FieldA = "FieldA" and FieldB = "FieldB",
"{calculation field's name}",
FieldA * FieldB
)
Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
.
- References:
- Way to make "Disappearing Field Labels"?
- From: Grip
- Re: Way to make "Disappearing Field Labels"?
- From: Carpeflora
- Way to make "Disappearing Field Labels"?
- Prev by Date: Re: Way to make "Disappearing Field Labels"?
- Next by Date: Why, when one looks like the other, they're not the same...
- Previous by thread: Re: Way to make "Disappearing Field Labels"?
- Next by thread: Why, when one looks like the other, they're not the same...
- Index(es):