Results 1 to 5 of 5

Thread: Selecting a value from the Dropdown the correspondent fields should be enabled

  1. #1
    ramesh83 is offline Sugar Community Member
    Join Date
    May 2009
    Location
    Hyderabad
    Posts
    92

    Thumbs up Selecting a value from the Dropdown the correspondent fields should be enabled

    Hi all,
    I am using SugarCE-Full-5.2.0f
    I have a dropdown in that i have two options 1.NO 2. Yes ,
    1. By Default the dropdonw list have ' NO ',all fields in the panel are in the Readonly mode
    2. If we change the status to YES the correpondent fields in the panel should be changed to Read & Write Mode

    Plz kindly reply if any one knows the answer

    Hope i'll Get the proper answer thnx

  2. #2
    mapm's Avatar
    mapm is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Portugal
    Posts
    239

    Default Re: Selecting a value from the Dropdown the correspondent fields should be enabled

    You need to know javascript to do this, and it depends on your module specifications....
    --
    Mário Pereira Martins

    Javali - Administração e Desenvolvimento de Sistemas Informáticos, Lda.
    Madan Parque Edifício VI Campus da FCT/UNL
    Quinta da Torre 2829-516 Caparica Portugal
    Phone: +351 212949666 Fax: +351 212948313
    http://www.javali.pt

  3. #3
    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: Selecting a value from the Dropdown the correspondent fields should be enabled

    It can be easily accomplished using DevToolKit.
    You can find the link to project page at my signature.

    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.

  4. #4
    ramesh83 is offline Sugar Community Member
    Join Date
    May 2009
    Location
    Hyderabad
    Posts
    92

    Default Re: Selecting a value from the Dropdown the correspondent fields should be enabled

    Thanq and i will try ??

    Keep Smiling

  5. #5
    ramesh83 is offline Sugar Community Member
    Join Date
    May 2009
    Location
    Hyderabad
    Posts
    92

    Smile Re: Selecting a value from the Dropdown the correspondent fields should be enabled

    I had completed my task by using the below code

    // in EditView
    array (
    'id' => 'referedbyany_c',
    'name' => 'referedbyany_c',
    'label' => 'LBL_REFEREDBYANY',
    'customCode' => '<select id="referedbyany_c" name=\'referedbyany_c\' onClick=\'selection();\'><option name="Select">Select</option><option name="NO">NO</option><option name="YES">YES</option></select>',
    ),
    <script type="text/javascript">
    function selection(){
    var drop_down = document.getElementById("referedbyany_c").value;
    var ref_name = document.getElementById("referencename_c");
    var ref_design = document.getElementById("referencedesignation_c");
    var ref_email = document.getElementById("referenceemailid_c");
    var ref_phone = document.getElementById("referencephone_c");
    if(drop_down == "NO"){
    ref_name.disabled = true;
    ref_design.disabled = true;
    ref_email.disabled = true;
    ref_phone.disabled = true;
    }
    if(drop_down == "YES"){
    ref_name.disabled = false;
    ref_design.disabled = false;
    ref_email.disabled = false;
    ref_phone.disabled = false;
    }
    }
    </script>

    Thanx For The Responses

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Selecting Multiple records via Related to fields
    By Mithun in forum Developer Help
    Replies: 2
    Last Post: 2010-01-06, 07:16 PM
  2. populating dropdown by selecting other drop down value
    By vishal29 in forum Developer Help
    Replies: 4
    Last Post: 2009-12-31, 04:17 AM
  3. Replies: 2
    Last Post: 2009-01-23, 03:29 AM
  4. Replies: 2
    Last Post: 2009-01-09, 10:19 AM
  5. Replies: 2
    Last Post: 2008-12-24, 04:07 AM

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
  •