NetTalk Central

Author Topic: Placeholder on a drop field?  (Read 3142 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Placeholder on a drop field?
« on: September 10, 2012, 01:31:27 AM »
Hi Bruce .
Is it possible to get a placeholder on a drop field?

Regards Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Placeholder on a drop field?
« Reply #1 on: September 10, 2012, 05:23:22 AM »
yes and no.
not in the traditional sense, because a drop always displays one of the "list of values".

So what I usually do is add a value to the top of the list (more settings tab) with some sort of
[ select item ]
type entry.
(you can even set the css of this entry to grey if you like.)

so it's not a place-holder, because it's always visible in the list - but it does prompt the user to select something.

cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Placeholder on a drop field?
« Reply #2 on: September 10, 2012, 10:15:44 PM »
Hi Bruce

I usually use the way to make a manual entry with the value zero.
But your idea of putting a gray color on, I had not thought of - that's smart!
Thanks for the reply.