Results 1 to 3 of 3

Thread: Contacts selection popup not working

  1. #1
    calebeskurdal is offline Sugar Community Member
    Join Date
    Jul 2011
    Posts
    12

    Default Contacts selection popup not working

    I am adding a field to the Calls EditView to allow the Call to be associated with a Contact. What I'm trying to do is add a popup to select the Contact. For some reason whenever the
    Code:
    {"call_back_function":"set_return","form_name":"EditView","field_to_name_array":{"id":"spoke_with_contact_id","user_name":"spoke_with_contact_name"}},
    is in the open_popup function the page will not display.

    Does anyone have any idea why?

    regards,
    CS


    from custom/modules/Calls/metadata/editviewdefs.php:
    Code:
    array (
                'name' => 'spoke_with_contact_c',
                'label' => 'LBL_SPOKE_WITH_CONTACT',
    			'customCode' => '<input type="hidden" name="spoke_with_contact_id" id="spoke_with_contact_id" /><input type="text" name="spoke_with_contact_name" id="spoke_with_contact_name" class="sqsEnabled yui-ac-input" size="" value="{$fields.spoke_with_contact_c.value}" autocomplete="off"/><span class="id-ff multiple"><button type="button" name="btn_parent_contact" id="btn_parent_contact" tabindex="102" title="Select" class="button firstChild" value="Select" onclick="open_popup("Contacts", 600, 400, "", true, false, {"call_back_function":"set_return","form_name":"EditView","field_to_name_array":{"id":"spoke_with_contact_id","user_name":"spoke_with_contact_name"}}, "single", true);"><img src="themes/default/images/id-ff-select.png"/></button><button type="button" name="btn_clr_parent_contact" id="btn_clr_parent_contact" tabindex="103" title="Clear" class="button lastChild" onclick="this.form.spoke_with_contact_name.value = \'\'; this.form.spoke_with_contact_id.value = \'\';" value="Clear"><img src="themes/default/images/id-ff-clear.png"/></button></span>',
              )

  2. #2
    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: Contacts selection popup not working

    You can override the callback function and name value list by:

    $displayParams['call_back_function']

    and

    $displayParams['field_to_name_array']

    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.

  3. #3
    solid's Avatar
    solid is offline Sugar Community Member
    Join Date
    May 2010
    Location
    Canada
    Posts
    35

    Default Re: Contacts selection popup not working

    Quote Originally Posted by andopes View Post
    You can override the callback function and name value list by:

    $displayParams['call_back_function']

    and

    $displayParams['field_to_name_array']

    Regards
    Be cautious : the order of the parameters in $displayParams is important, otherwise it will not be used.
    Last edited by solid; 2011-08-31 at 07:20 PM.

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: 2008-11-18, 07:42 AM
  2. Replies: 6
    Last Post: 2008-08-06, 04:35 PM
  3. Return data from module popup selection
    By rustinp77 in forum Developer Help
    Replies: 4
    Last Post: 2007-08-09, 11:51 PM
  4. Popup selection error
    By Tavares in forum Developer Help
    Replies: 10
    Last Post: 2007-07-17, 02:48 PM
  5. Quick Create not working in Contacts popup
    By pniranjan in forum Developer Help
    Replies: 1
    Last Post: 2007-04-26, 01:10 PM

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
  •