Results 1 to 3 of 3

Thread: Adding a web link referencing a SugarCRM field

  1. #1
    cweston is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    11

    Question Adding a web link referencing a SugarCRM field

    I want to add a custom field to my account record that holds a clickable web address, like the 'Website' field. However, I want to pass a value from the account record.

    For example, I have a custom field called 'ERP Reference' which for the sake of argument holds '01234' for customer 'FooBar Industries'. When I view that account reference I want to be able to open an intranet page, ie 'http://intranetserver/customer.php?ref=01234'

    But of course, I want this to be an automatic process, I want the link to automatically have the value from 'ERP reference' inserted. Is a field the right way to achieve this, or can I add a button somewhere?

    Thanks very much, this will be excellent if I can get it to work!

  2. #2
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,100

    Default Re: Adding a web link referencing a SugarCRM field

    This should be fairly easy.

    Add that custom field to the accounts detail view as you would normally with the studio. This is altering the file: module/Accounts/DetailView.html.

    Now edit that file by hand and you'll see how this custom filed has been inserted. You'll also see (provided you haven;t removed it previously) how the website field is hyperlinked. Now just hack the code around your custom field in a similar manner to generate the new hyperlink using the custom value.

  3. #3
    cweston is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    11

    Thumbs up Re: Adding a web link referencing a SugarCRM field

    Blimey, as easy as that. Works a treat. I can see this being a very handy bit of kit.

    Cheers

Thread Information

Users Browsing this Thread

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

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
  •