Results 1 to 3 of 3

Thread: type read only for Adress

  1. #1
    Kupido is offline Sugar Community Member
    Join Date
    Apr 2011
    Posts
    60

    Default type read only for Adress

    Hello

    i need to set in contacts the adress to read only/fix
    I enter in editviewdefs.php:

    Code:
    array (
                'name' => 'primary_address_street',
                'hideLabel' => true,
                'type' => 'address',
                'displayParams' => 
                array (
                  'key' => 'primary',
                  'rows' => 2,
                  'cols' => 30,
                  'maxlength' => 150,
                  'type' => 'readonly'

    but this doesn't work.

    Can any1 help or has an idea?

    best regards

  2. #2
    Kupido is offline Sugar Community Member
    Join Date
    Apr 2011
    Posts
    60

    Default Re: type read only for Adress

    nobody has an idea?

  3. #3
    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: type read only for Adress

    To accomplish that you need to override the Address field template into custom/include/SugarFields/Fields/Address.

    Regards
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HTML Field type not read from the database
    By tickletoe in forum Help
    Replies: 4
    Last Post: 2011-04-14, 01:17 AM
  2. Replies: 0
    Last Post: 2011-04-01, 08:48 AM
  3. read-only type field fails to pass a value in $_POST
    By work77 in forum Developer Help
    Replies: 2
    Last Post: 2010-11-11, 01:16 AM
  4. Threads being marked as 'read' before I read them...
    By tbivans in forum Site feedback
    Replies: 0
    Last Post: 2008-03-17, 02:51 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
  •