Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By asavaliya

Thread: Flex Relate field customization

  1. #1
    nathan511 Guest

    Default Flex Relate field customization

    The flex relate field (Related to) points to the 'name' field by default. What's the best way to change this field for a specific module? For example, for my 'Prospect' module, I want the flex relate field to point to a field named 'account_name' instead of the default field 'name'. I need this change to be reflected in all views.
    Attached Images Attached Images  

  2. #2
    mikebeck Guest

    Default Re: Flex Relate field customization

    I would like to know this too, I've managed to make it to work in a 'relate' only field, but can't make it to work in a 'flex relate' field

    regards

  3. #3
    asavaliya is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    101

    Default Re: Flex Relate field customization

    Hi..
    It is hardcoded at "include\SugarFields\Fields\Parent\SugarFieldParen t.php".

    getEditViewSmarty function
    PHP Code:
    $popup_request_data = array(
                
    'call_back_function' => 'set_return',
                
    'form_name' => $form_name,
                
    'field_to_name_array' => array(
                                                
    'id' => $vardef['id_name'],
                                                
    'name'<Change it with your field> => $vardef['name'],
                                         ),
            ); 



    But it will have effect for all other module also.I mean if you do change for account it will have effect for contact,opportunity etc.
    mikebeck likes this.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Flex Relate field - why only one per module?
    By stesin in forum Developer Help
    Replies: 0
    Last Post: 2009-09-03, 10:16 AM
  2. Create a Flex Relate field
    By leandro.souza in forum Help
    Replies: 3
    Last Post: 2009-06-06, 10:46 PM
  3. Problem with flex relate field
    By arasdeveloper2 in forum Help
    Replies: 3
    Last Post: 2009-04-27, 04:38 PM
  4. Flex Relate Field....Help
    By genius786 in forum Developer Help
    Replies: 3
    Last Post: 2009-04-15, 01:01 PM
  5. Flex relate field in 4.5.1i
    By sidh211 in forum Developer Help
    Replies: 0
    Last Post: 2008-06-30, 07:55 AM

Tags for this Thread

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
  •