Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Regarding Drop-Down

  1. #1
    Shripad1988 is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    65

    Unhappy Regarding Drop-Down

    Hi All,
    I created the 2 drop down lists i.e "City" and "Country" in Studio.Now i want to display them in edit view of Campaign module but the filed is showing blank...I dont know wats the matter?
    I even tried to create drop down using "vardefs.ext.php".yet im facing problem...http://www.sugarcrm.com/forums/images/smilies/frown.gif

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Regarding Drop-Down

    Could you provide the code you added to add the dropdowns?
    John Mertic
    Sugar Community Manager

  3. #3
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Regarding Drop-Down

    Maybe you dont have the code as you did this in Studio. Can you take a screen shot of the Studio page for


    1. the Dropdown list
    2. the Field you have the dropdown list attached to
    3. the Editview layout


    and attach that to a post and we can look over it. It also could be a permission issue, you would know this if you go back into the drop down editor and your list is either not there or if it is not editable (try to add a new item to it)

    As a last resort you could go to the admin menu, select Diagnostics and run that, it wil give you a ZIP file that is safe to upload here as well. That will give us enough info to see whats wrong.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  4. #4
    Shripad1988 is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    65

    Default Re: Regarding Drop-Down

    Hi,
    I dont have code for drop down as i created in Studio...And kbrill thnxs i have got the drop down values now...it was minor naming mistake...Now i have a small isue...I have drop down for country(Australia,India) and state(Perth,Melbourne,pune.mumbai)..I also created a 3rd drop down for those states who come under australia(perth,melbourne),
    Now i want to hide the 3rd drop down and wen i select country suppose Australia then its corressponding states drop down(perth,melbourne) should be displayed.How can i do that?

  5. #5
    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: Regarding Drop-Down

    On PRO flavors you can do that through Sugar Logic.
    On CE you can do hat through DevToolKit. You can see the project page link at my signature.

    Cheers
    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.

  6. #6
    Shripad1988 is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    65

    Default Re: Regarding Drop-Down

    Thnxs Andopes i'll try it out...

  7. #7
    Shripad1988 is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    65

    Default Re: Regarding Drop-Down

    hi Andopes,
    I'm not getting how to use Devtoolkit.Could you please suggest some other way how to hide the 3rd Drop down first and then on selection of any value from first drop down display this 3rd Drop down...


    Thnxs...Regards

  8. #8
    Shripad1988 is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    65

    Default Re: Regarding Drop-Down

    Hi Andope,
    I saw one of ur post ([url]http://www.sugarcrm.com/forums/f6/loadining-editview-call-javacript-function-69339/).In that u mentioned to add onload event in view.edit.php file.How do i do that?I'm facing problem like
    syntax error, unexpected '=', expecting ',' or ';' in /opt/lampp/htdocs/CRM/include/MVC/View/views/view.edit.php on line 67

    My Code:

    function display()
    {
    $this->ev->process();
    echo $this->ev->display($this->showTitle);
    echo window.onload =load();
    }

    Thnxs Regards,
    Shripad

  9. #9
    Shripad1988 is offline Sugar Community Member
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    65

    Default Re: Regarding Drop-Down

    Hi
    Can any one plz tell me how should i echo onload function in view.edit.php file?

  10. #10
    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: Regarding Drop-Down

    The correct approach is:

    PHP Code:
    echo "<script>window.onload =load();</script>"
    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.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. populate drop down on basis of another drop down value
    By dsuvankar in forum Developer Help
    Replies: 13
    Last Post: 2011-04-25, 10:41 AM
  2. drop down issue
    By vishwa.kamal100@gmail.com in forum Developer Help
    Replies: 1
    Last Post: 2011-03-07, 12:47 PM
  3. Replies: 2
    Last Post: 2010-02-17, 01:33 AM
  4. Drag and drop example
    By cyclope in forum Developer Help
    Replies: 0
    Last Post: 2009-09-03, 06:49 AM
  5. Replies: 0
    Last Post: 2008-10-16, 07:21 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
  •