Skip to content

How to use "description" instead of "label" for the placeholder? #6

@andrebu

Description

@andrebu

Not sure if this is the correct place to ask this...
I want to use the placeholder text as a "description" of sorts while the label remains above the field, as a label. So instead of using the label and making it disappear, I wanted to use the (barely used) description field for the placeholder entry.

Could you point me to what to change? I imagine you're hooking into gfield_label so I'd just have to change that to the "description class" and at the very least I can just CSS-hack the labels to appear again... Needless to say I am new to PHP and CSS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions