Results 1 to 3 of 3

Thread: Add Text Area instead of Text Field in Address

  1. #1
    Pharian is offline Junior Member
    Join Date
    Sep 2009
    Posts
    1

    Default Add Text Area instead of Text Field in Address or Secondary Address Field Sizes

    hi

    im building a few secondary address fields in the contacts section. when i add an 'address' it gives me several fields, one being the street address. however, this is only 1 line of text where i need to have 2 or 3 lines.

    is there any way to change the field to be a text_area (ie a bos i can add 3 lines to) rather than a text_field (1 line)?

    i have tried deleting the street field from the automatically created address fields then recreating a new field with a text_area and the same name but when i do that i can no longer see any contacts at all, it seems to crash the database sync or something

    anyone got any suggestions?

    cheers!

    (and does this all make sense? lol... im not completely savvy with the correct terminology of everything im trying to do. sugarnoob here :P )

    edit:

    eg, my second address looks like this:

    St Vincent's Hospital, Suite 1, Level 3, Healy Wing, 41 Victoria Parade
    FITZROY, VIC
    Australia 3065

    when i need it to look like this:

    St Vincent's Hospital
    Suite 1, Level 3, Healy Wing
    41 Victoria Parade
    FITZROY, VIC
    Australia 3065

    cheers all! hope you can help!

    ps. i know i could create new fields for the secondary addresses, but apparently creating fields as 'address' somehow makes sugar mesh better with word for things like mail exports and the like. is this true? or is it just as easy to export individual fields as an 'address' set of fields?
    Last edited by Pharian; 2009-09-29 at 01:55 AM.

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Add Text Area instead of Text Field in Address

    SugarCRM has concatenated address since its earliest editions .. I don't understand the design decision behind this and it would be interesting to get a sugar perspective on it.

    However, the simplest solution would be to create addressline2, addressline3 address lines. Don't delete the existing sugar fields, just replace them.

    What's the business reason for doing this?

  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: Add Text Area instead of Text Field in Address or Secondary Address Field Sizes

    Quote Originally Posted by Pharian View Post
    hi

    im building a few secondary address fields in the contacts section. when i add an 'address' it gives me several fields, one being the street address. however, this is only 1 line of text where i need to have 2 or 3 lines.

    is there any way to change the field to be a text_area (ie a bos i can add 3 lines to) rather than a text_field (1 line)?

    i have tried deleting the street field from the automatically created address fields then recreating a new field with a text_area and the same name but when i do that i can no longer see any contacts at all, it seems to crash the database sync or something

    anyone got any suggestions?

    cheers!

    (and does this all make sense? lol... im not completely savvy with the correct terminology of everything im trying to do. sugarnoob here :P )

    edit:

    eg, my second address looks like this:

    St Vincent's Hospital, Suite 1, Level 3, Healy Wing, 41 Victoria Parade
    FITZROY, VIC
    Australia 3065

    when i need it to look like this:

    St Vincent's Hospital
    Suite 1, Level 3, Healy Wing
    41 Victoria Parade
    FITZROY, VIC
    Australia 3065

    cheers all! hope you can help!

    ps. i know i could create new fields for the secondary addresses, but apparently creating fields as 'address' somehow makes sugar mesh better with word for things like mail exports and the like. is this true? or is it just as easy to export individual fields as an 'address' set of fields?
    Hi Pharian

    I got your idea! Actually we had implemented such feature for a customer.
    How are your skills regarding SugarCRM and php development?
    You need to:
    • create a new field template based on Address;
    • customize the editviewdefs.php and detailviewdefs.php to consider this new field instead of the default one;


    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. Enlargement text area
    By Systems Navigator in forum Developer Help
    Replies: 5
    Last Post: 2009-12-02, 04:31 PM
  2. How do I resize text area boxes?
    By syuusuke in forum Help
    Replies: 20
    Last Post: 2009-08-26, 11:54 AM
  3. Adding Text Area Field
    By shorty114 in forum Help
    Replies: 1
    Last Post: 2007-10-12, 07:33 PM
  4. text area and drop down question
    By westn11 in forum Developer Help
    Replies: 1
    Last Post: 2005-06-23, 11:11 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
  •