locked
How to Disable :convert lNew lead and Convert existing lead options on the convert campaign response dialogue box RRS feed

  • Question

  • Hi all.     

       i need a  requirement of Disable :convert lNew lead and Convert existing lead options on the convert campaign response dialogue box,but it directly select the option of create a new record for customer.

    Please reply me immediatly

     

    Thanks,


    Natarajan.V
    Wednesday, April 28, 2010 11:55 AM

Answers

  • Hi,

    You can also try hiding those options using JavaScript (unsupported customization)

    Open conv_response.aspx page and put the following JavaScript code in the function window.onload()

    //for hiding the create new lead option 
    document.getElementById('radCreateNewLead').style.display = "none";
    document.getElementById('radCreateNewLead').parentNode.parentNode.childNodes[1].childNodes[0].style.display = "none";
    document.getElementById('radCreateNewLead').parentNode.parentNode.parentNode.childNodes[1].childNodes[1].childNodes[0].style.display = "none";

    Regards,

    Nishant Rana


    http://nishantrana.wordpress.com
    Wednesday, April 28, 2010 12:19 PM

All replies

  • Hi,

    You can also try hiding those options using JavaScript (unsupported customization)

    Open conv_response.aspx page and put the following JavaScript code in the function window.onload()

    //for hiding the create new lead option 
    document.getElementById('radCreateNewLead').style.display = "none";
    document.getElementById('radCreateNewLead').parentNode.parentNode.childNodes[1].childNodes[0].style.display = "none";
    document.getElementById('radCreateNewLead').parentNode.parentNode.parentNode.childNodes[1].childNodes[1].childNodes[0].style.display = "none";

    Regards,

    Nishant Rana


    http://nishantrana.wordpress.com
    Wednesday, April 28, 2010 12:19 PM
  • The following code snipet is used to hide default Convert Lead button on Leads form.

    You will need to change it a bit to match your requirement

    Happy coding!!!

    var convertLeadButton = document.all._MBconvertLead; 
    var convertLeadMenu = document.all._MIconvertLead; 
    if (convertLeadButton) 
    {
      var spacerToTheRightOfLeadButton = convertLeadButton.nextSibling; 
      convertLeadButton.style.display = "none"; 
      spacerToTheRightOfLeadButton.style.display = "none"; 
    } 
    if(convertLeadMenu)
      convertLeadMenu.style.display = "none";

     

    Regards,

    Vikas Chitale,

    Pune, India

    • Edited by Vikas Chitale Wednesday, April 28, 2010 12:47 PM Wrong code posted before editing and formatting for new one was not good
    Wednesday, April 28, 2010 12:20 PM