Results 1 to 3 of 3

Thread: javascript function onchange not working in Multiselect

  1. #1
    sriramm is offline Member
    Join Date
    Aug 2009
    Posts
    13

    Default javascript function onchange not working in Multiselect

    Hi,

    'displayParams' =>
    array (
    'required' => true,
    'javascript' => 'onchange="showDiv();"',
    ),

    This onchange event is for the MultiSelect option
    and it does not worked for me ...

    Is there any other things needed for this event to work ?...
    Please help me in getting this to be working for me

    Thanks and Regards
    SriRam.M.I
    INDIA

  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: javascript function onchange not working in Multiselect

    The multienum fiel has no support for javascript option on onchange attribute.
    You should need to either onverride the EditView.tpl or create a new new field template to accomplish this needs.

    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
    maloner's Avatar
    maloner is offline Sugar Community Member
    Join Date
    Mar 2007
    Location
    Westmeath & Dublin
    Posts
    95

    Default Re: javascript function onchange not working in Multiselect

    This did work in 5.2.0 however it doesn't seem to be supported in 5.5.1. Can you provide code sample of how the .tpl needs to be modified.

    thanks,

    John
    John Malone
    Provident CRM Ltd
    SugarCRM Implementation Partner - Ireland
    http://www.providentcrm.ie/sugar-crm.html
    email: john@providentcrm.ie
    ph: 01-4403685

    Checkout our Monthly meetup: http://lampsoftware.meetup.com/9/
    SugarCRM Ireland Linked-In Group: http://www.linkedin.com/groups?gid=884327
    SugarCRM UK Linked-In Group: http://www.linkedin.com/groups?gid=1813385

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Javascript onchange
    By danrweki in forum Developer Help
    Replies: 13
    Last Post: 2012-05-03, 09:52 AM
  2. Javascript - Onchange
    By ff76 in forum Developer Help
    Replies: 5
    Last Post: 2010-11-05, 10:28 PM
  3. Javascript onchange not working
    By danrweki in forum Help
    Replies: 0
    Last Post: 2008-07-31, 12:24 PM
  4. Replies: 1
    Last Post: 2008-06-04, 04:23 PM
  5. Javascript errors, mail not working?
    By Hooijer in forum Help
    Replies: 1
    Last Post: 2006-06-08, 05:32 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
  •