Disable a Label

Support General Disable a Label

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16954
    dave@navarrojr.com[email protected]
    Participant

    Is there an attribute to display a label for a field?

    #16978
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    A field label is set via name attribute. Please try it.

    Also, the desc attribute adds a description to the field input, and label_description adds a description for the field label.

    #17042
    dave@navarrojr.com[email protected]
    Participant

    Apologies, I meant "disable a label".

    I need to compact a form into a smaller space and I am using "placeholders", so I want to disable the labels for some fields.

    #17057
    Anh TranAnh Tran
    Keymaster

    I got it. All you need to do is set 'name' => '' for the fields. Then field labels won't appear.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.