Results 1 to 2 of 2

Thread: Link new drop down to existing fields

  1. #1
    sinkplaat is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    18

    Default Link new drop down to existing fields

    Hi, I would like to create a drop-down to link to the existing country fields, billing_address_country and shipping_address_country.

    Is this possible or can I only use custom fields when creating new drop-downs?

    Thanks

  2. #2
    lu2007 is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    11

    Red face Re: Link new drop down to existing fields

    sinkplaat:

    I don't know if you ever found an answer to your post, but I was also looking for an answer to this same problem.

    I just happened to open the EditView.html file because I was trying to figure out how to adjust the columns on the view panel and I found the answer (I haven't tested it yet, but I believe this will work).

    The EditView.html file is located in the Sugar/Modules/Leads directory. Edit this file and change the name of the Select object that contains your drop-down to match the field in your database that you want to link it to.

    For instance, I created a drop-down menu called "lead_class_c". The label for this menu is also called lead_class_c. However, the existing field in the database is called "targetsale_c". So in order to store the data from the drop down in the database under the existing field, change the name of the select object to match the existing field name.

    <select name="lead_class_c" tabindex='1'>{OPTIONS_LEAD_CLASS_C}</select

    gets changed to:

    <select name="targetsale_c" tabindex='1'>{OPTIONS_LEAD_CLASS_C}</select>

    Please let me know if this works for you. I had already recreated my fields in the database, so I am unable to test this. But I am pretty sure this will work.

    LU2007

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Import Custom fields... delete existing data
    By frb in forum Developer Help
    Replies: 2
    Last Post: 2006-12-07, 07:53 AM
  2. Replies: 1
    Last Post: 2006-11-24, 12:08 AM
  3. Merge Contacts show sql error
    By hheckner in forum General Discussion
    Replies: 5
    Last Post: 2006-10-04, 01:57 PM
  4. Link email to existing contact
    By Proware in forum Feature Requests
    Replies: 0
    Last Post: 2006-05-22, 11:22 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
  •