Results 1 to 3 of 3

Thread: Convert Lead

  1. #1
    cff_moiseszaragoza is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    109

    Default Convert Lead

    Is there a way to remove Convert Lead for a particular role
    Attached Images Attached Images  
    Last edited by cff_moiseszaragoza; 2011-03-07 at 05:05 PM.

  2. #2
    cff_moiseszaragoza is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    109

    Default Re: Convert Lead

    custom/modules/Leads/metadata/detailviewdefs.php

    look for a array named buttons


    PHP Code:
    array (
            
    'buttons' => 
            array (
              
    => 'EDIT',
              
    //1 => 'DUPLICATE', // MZ 
              
    => 'DELETE',
              
    => 
              array (

                
    //'customCode' => '<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Leads&action=ConvertLead&record={$fields.id.value}\'" name="convert" value="{$MOD.LBL_CONVERTLEAD}">',

              
    ),
              
    => 
              array (
                
    'customCode' => '<input title="{$APP.LBL_DUP_MERGE}" accessKey="M" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Step1\'; this.form.module.value=\'MergeRecords\';" type="submit" name="Merge" value="{$APP.LBL_DUP_MERGE}">',
              ),
              
    => 
              array (
        
                
    //'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Leads\'; this.form.return_action.value=\'DetailView\';this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Leads\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
        
              
    ),
            ), 

  3. #3
    cff_moiseszaragoza is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    109

    Default Re: Convert Lead

    This is working for now but there is a problem
    people in a role need it and people in another role don't

    so there has to be a better way to do this

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: 2011-04-14, 08:42 AM
  2. Convert Lead
    By NaCheV in forum Developer Tutorials
    Replies: 1
    Last Post: 2010-09-13, 04:02 PM
  3. Replies: 0
    Last Post: 2009-02-23, 08:02 PM
  4. i cant Convert Lead
    By mahmoud.habashi in forum Help
    Replies: 1
    Last Post: 2008-10-05, 01:35 PM
  5. Convert Lead changes
    By kheald in forum Developer Help
    Replies: 0
    Last Post: 2008-01-22, 06:09 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
  •