Results 1 to 3 of 3

Thread: How to add Text Only as Field

  1. #1
    mittul's Avatar
    mittul is offline Sugar Community Member
    Join Date
    Aug 2011
    Posts
    84

    Question How to add Text Only as Field

    hello ..

    i have installed sugar crm 6.2.1 in my local wamp server 2.1 using windows xp 2

    now in my Contacts Form , i want to add new Label Field .. not Text Field or something ..

    but i can not see a Label Field Option when m creating a new Field by going to Studio and Contacts


    can somebody tell me what is the exact method to add a Label Field and my Text in it which i want to show.

  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: How to add Text Only as Field

    This label field is an existing one or a new one? Is this a real field or a pseudo field?
    If this field exists you can, easily, render such field as a label instead of a real field. Add into field definition of such field the attribute "type".

    PHP Code:
    'type' => 'readonly'
    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
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: How to add Text Only as Field

    You also could try:
    PHP Code:
     'customCode' => 'Fixed text'
    or

    PHP Code:
     'customCode' => '{$fields.field_name.value}'
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Email Field Should Get The Text Field Value
    By ramesh83 in forum Developer Help
    Replies: 1
    Last Post: 2010-06-24, 06:28 AM
  2. Pre Text Field
    By H2B Computers in forum Help
    Replies: 2
    Last Post: 2010-02-11, 03:53 PM
  3. Replies: 2
    Last Post: 2009-09-29, 11:15 AM
  4. two text fields = one field!
    By kinshibuya in forum Developer Help
    Replies: 1
    Last Post: 2008-10-09, 01:23 PM

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
  •