Results 1 to 3 of 3

Thread: How do I create a custom textarea?

  1. #1
    bdoyle807 Guest

    Default How do I create a custom textarea?

    I am trying to add a textarea to an edit form.

    Here is the code I have in a custom/Extension/modules/Contacts/Ext/Vardefs/custum1.php file

    $dictionary["Contact"]["fields"]["rel_rating_support_details"] = array(
    'required' => false,
    'name' => 'rating_support_details_c',
    'vname' => 'LBL_RATINGS_SUPPORT_DETAILS',
    'type' => 'text',
    'massupdate' => 0,
    'no_default' => false,
    'comments' => '',
    'help' => '',
    'importable' => 'true',
    'duplicate_merge' => 'disabled',
    'audited' => false,
    'reportable' => true,
    'unified_search' => false,
    'studio' => 'visible',
    'merge_filter' => 'disabled',
    'size' => '20',
    'rows' => '10',
    'cols' => '40',
    );

    When I do a repair, it doesnt have all the fields correct in studio when I look.
    Is the code above correct or are there some fields missing or wrong?

  2. #2
    davidboris's Avatar
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,525

    Default Re: How do I create a custom textarea?

    Hello,

    PHP Code:
    $dictionary["Contact"]["fields"]["rating_support_details_c"] = array(
        
    'required' => false,
        
    'name' => 'rating_support_details_c',
        
    'vname' => 'LBL_RATINGS_SUPPORT_DETAILS',
        
    'type' => 'text',
        
    'massupdate' => 0,
        
    'no_default' => false,    
        
    'comments' => '',
        
    'help' => '',
        
    'importable' => 'true',
        
    'duplicate_merge' => 'disabled',
        
    'audited' => false,
        
    'reportable' => true,
        
    'unified_search' => false,
        
    'studio' => 'visible',
        
    'merge_filter' => 'disabled',
        
    'size' => '20',
        
    'rows' => '10',
        
    'cols' => '40',
    ); 
    Try this.
    Web : http://www.urdhva-tech.com
    Twitter : @urdhvatech
    Email : contact@urdhva-tech.com
    Blog : Urdhva-Tech
    Skype : urdhvatech

    Our Premium Projects for SugarCRM:
    Premium theme for SugarCRM CE (Community Edition 6.5+ with 4 combinations, Black + Orange/Red/Green/Blue, bootstrap3 based)
    Duplicate detector to avoid duplicate data entry.
    Customer Self Service Portal for All Flavours.
    tagMe A complete tag management for SugarCRM.
    Meeting Map Reminder Meeting reminder with Gmap in Email

  3. #3
    bdoyle807 Guest

    Default Re: How do I create a custom textarea?

    In the immortal words of Homer - ' Doh!'

    Thanks alot! Works great now.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2013-06-10, 11:20 PM
  2. Change the font in a custom TextArea?
    By lmoreau@invution.com in forum Help
    Replies: 3
    Last Post: 2012-09-06, 10:34 PM
  3. get_entry_list not returning custom textarea
    By NLPatrick in forum Developer Help
    Replies: 2
    Last Post: 2012-09-04, 10:19 PM
  4. Custom textarea with default value
    By schurli007 in forum Developer Help
    Replies: 0
    Last Post: 2009-09-03, 08:05 AM
  5. I cannot create a textarea field
    By rferrer in forum Help
    Replies: 3
    Last Post: 2006-05-11, 03:33 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
  •