Results 1 to 2 of 2

Thread: Because you never WIN every opportunity

  1. #1
    russfordyce is offline Member
    Join Date
    May 2007
    Posts
    5

    Default Because you never WIN every opportunity

    I created a drop down for "Closed Lost - Reasons" and added it to the opportunities page but was wondering if anyone knew how to make it only viewable/required when that sales stage is selected?

    I was also thinking that a pop up would be nice is closed lost was selected that would allow a user to enter in all the details of why you lost a deal.....any advice on how to implement???

    Closed Lost Reasons
    Selections
    - Price
    - Quality
    - Availability

    Price required to win ( $XXX )

  2. #2
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Wink Re: Because you never WIN every opportunity

    Hi!

    It is much better to use javascript.
    You can hide or show html elements using by html styles and javascript.

    BTW: if you have any feel free to contact us.

    few examples of code

    <select tabindex='1' onChange="go(this.value)" maxlength='50' name='name' id='name' >
    <option value='none' >none</option>
    <option value="111a7864-a333-6588-d078-45f09a1c6ba0" >Clinical</option>
    <option value="e3ae92fa-19b8-9378-64ef-4554be6fd961" >Consultation - Cataract</option><option value="2ecbb885-d04e-6427-645b-4554be153184" >Consultation - CK</option><option value="a0fe79bd-e27b-603f-9b3a-45c6238fb177" >Consultation - ICL</option><option value="eac7015b-18ac-7741-c8cb-45eddbfb4a24" >Consultation - Intacs</option><option value="5afc8b83-8717-a623-0dc9-4554be55a3ab" >Consultation - LASIK/PRK</option><option
    <script type="text/javascript"> function go(ob){ mas=new Array("e3ae92fa-19b8-9378-64ef-4554be6fd961","2ecbb885-d04e-6427-645b-4554be153184",
    "a0fe79bd-e27b-603f-9b3a-45c6238fb177","eac7015b-18ac-7741-c8cb-45eddbfb4a24",
    "5afc8b83-8717-a623-0dc9-4554be55a3ab","bb2a3654-9b75-0e02-0e06-455d37f37f7e",
    "ddaa8999-25a6-4cec-8c3c-46129fa1ddac","f053d863-8097-f5db-10c8-45c3ef92f3c9",
    "de7d9cbe-8adb-d05a-9d2b-45c622d9f43e"); Hide();
    for (var i = 0; i < 200; i++) { if ( ob == mas[i]) { Show(); } } }
    </script>
    </select>


    <script type="text/javascript" >

    function GetElement(id){
    var res = '';
    res = this.document.getElementById(id);
    if(this.document.getElementById(id+"link") != undefined) {
    res = this.document.getElementById(id+"link");;
    }
    return res;
    }

    function SetStyle(id,res){
    val = GetElement(id);
    val.style.display = res;
    }

    function Show(){
    SetStyle('parent_name','');
    SetStyle('parent_id','');
    SetStyle('btn1','');
    SetStyle('lb_counselor','');
    SetStyle('parent_link','');

    }

    function Hide(){
    SetStyle('parent_name','none');
    SetStyle('parent_id','none');
    SetStyle('btn1','none');
    SetStyle('lb_counselor','none');
    SetStyle('parent_link','none');

    }
    function Clear(){
    par = GetElement('parent_id');
    par.value = '';
    par_n = GetElement('parent_name');
    par_n.value = '';
    }
    function ClearDoctor(){
    par = GetElement('doctor_id');
    par.value = '';
    par_n = GetElement('doctor_name');
    par_n.value = '';
    }

    </script>
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Modifying the Quick Add Opportunity
    By juanwang in forum Help
    Replies: 1
    Last Post: 2007-05-19, 12:18 AM
  2. Replies: 0
    Last Post: 2007-02-05, 09:49 PM
  3. Replies: 9
    Last Post: 2006-07-18, 08:41 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
  •