Results 1 to 3 of 3

Thread: Hiding Field Labels

  1. #1
    neopaulino is offline Junior Member
    Join Date
    Sep 2008
    Posts
    2

    Default Hiding Field Labels

    Greetings,

    I'm trying to do a hide/display function with some specific fields, considering the level of the user accessing that information. I managed to hide the field data, and I have to thank you for it, since I used this and it worked really fine.

    Nevertheless, I'm having another difficulty now. I managed to hide the field, but I can't use that same method to hide the label, since it has no id. So, I was wondering if you could help me find a way to hide the label or, in the latter case, give it an id.

    Best Regards,

    Sergio

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Hiding Field Labels

    Hi Sergio

    You can add this attribute into fields definition at the editviewdefs.php

    PHP Code:
    'customLabel' => '<div style=\'none\' id=\'publisher_name_label\'>{$MOD.LBL_PUBLISHER} <span class="required">*</span></div>'
    Modify the enough to get it working according to your needs.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    neopaulino is offline Junior Member
    Join Date
    Sep 2008
    Posts
    2

    Default Re: Hiding Field Labels

    Hi André,

    Thank you very much, it worked wonderfully. A simple and fast solution.

    Cheers,

    Sergio

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to delete field in sugar labels?
    By Zeonz in forum Help
    Replies: 3
    Last Post: 2006-05-17, 01:36 AM
  2. Custom Field Labels Do Not Appear
    By bill@epicom.com in forum Help
    Replies: 3
    Last Post: 2006-05-10, 05:49 PM
  3. Custom field labels no showing up
    By BOTA:X in forum Help
    Replies: 5
    Last Post: 2006-01-25, 07:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •