Results 1 to 3 of 3

Thread: RelatedField Autofill other fields

  1. #1
    aureh12 is offline Sugar Community Member
    Join Date
    Feb 2009
    Posts
    96

    Question RelatedField Autofill other fields

    Dear all.

    Do you know how I can autofill fields ?

    For exemple:
    1/ I'm on "Contact Editview", I select the account by clicking the RelatedField button "select" or by typing the first letters of the account name.
    2/ When the name is fully retrieved, I would like the custom field "TOTO" be be filled instantly with the Account City.
    3/ I can continue to fill other fields of my Contact record.

    How can I do that ?
    Hook ? Javascript ? other ?

    Thanks

  2. #2
    aureh12 is offline Sugar Community Member
    Join Date
    Feb 2009
    Posts
    96

    Default Re: RelatedField Autofill other fields


  3. #3
    aureh12 is offline Sugar Community Member
    Join Date
    Feb 2009
    Posts
    96

    Question Re: RelatedField Autofill other fields

    Dear all.

    The select button will fill the fields listed in the following code in my editview.
    But the Ajax auto-fill will do nothing.

    How can I get Ajax to fill my form fields ?


    PHP Code:
              array (
                
    'name' => 'agr_products_agr_quotationlines_name',
                
    'label' => 'LBL_AGR_PRODUCTS_AGR_QUOTATIONLINES_NAME',
                
    'displayParams' => 
                array (
                  
    'field_to_name_array' => 
                  array (
                    
    'name' => 'agr_products_agr_quotationlines_name',
                    
    'ref_augura' => 'name',
                    
    'unit_buying_price' => 'unit_buying_price',
                    
    'qty_per_carton' => 'qty_per_carton',
                    
    'cbm_per_carton' => 'cbm_per_carton',
                    
    'weight_per_carton' => 'weight_per_carton',
                    
    'eu_custom_tax' => 'eu_tax_rate',
                    
    'moq' => 'line_moq',
                  ),
                  
    'additionalFields' => 
                  array (
                    
    //'name' => 'agr_products_agr_quotationlines_name',
                    
    'ref_augura' => 'name',
                    
    'unit_buying_price' => 'unit_buying_price',
                    
    'qty_per_carton' => 'qty_per_carton',
                    
    'cbm_per_carton' => 'cbm_per_carton',
                    
    'weight_per_carton' => 'weight_per_carton',
                    
    'eu_custom_tax' => 'eu_tax_rate',
                    
    'moq' => 'line_moq',
                  ),
                ),
              ), 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. autofill account name in quick create case
    By cswilliams in forum Help
    Replies: 4
    Last Post: 2010-03-03, 12:51 PM
  2. Problem with autofill of relate field
    By stefan.theissen in forum Help
    Replies: 0
    Last Post: 2009-05-04, 12:55 PM
  3. Autofill account name on search
    By eggsurplus in forum Help
    Replies: 0
    Last Post: 2008-07-15, 06:43 PM
  4. autofill email field in cases quickcreate
    By cswilliams in forum Developer Help
    Replies: 1
    Last Post: 2008-05-28, 10:32 PM
  5. Autofill Phone Numbers
    By kbrill in forum Developer Help
    Replies: 1
    Last Post: 2005-11-17, 02:15 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
  •