1

My code generates a phone call activity in each customer lead, then records the SMS conversation between that customer and the company. The description may contain an URL to an image that the customer finds relevant.

I can put the URL as text in the description property, but I would like to transform it to a hyperlink (something like an <a> tag of html.) That way I can click to open it directly instead of copy pasting the URL first.

How can I achieve this?

4444
  • 3,541
  • 10
  • 32
  • 43
Anamika Rani
  • 35
  • 1
  • 7

3 Answers3

2

The description field on a phone call is just a plain old text field, so you can't add any formatting or hyperlinks there.

You could make a separate field, single line of text, with a type of URL. Then the URL you input should act as a typical hyperlink.

The data types are documented at Create and Edit Fields.

James Wood
  • 17,286
  • 4
  • 46
  • 89
1

I believe you're asking about being able to have a large text area, within CRM, that is editable, but allows you to enter, or at least click on, hyperlinks.

I see two supported solutions, but both would take a lot of customization.

  1. Create an HTML webresource that loads the text from the field, parses it, looking for hyper links, and then add's the correct <a> tagging in order for the links to be clickable.

  2. Search for a client side wiki markup Text Editor widget of some sort (possibly something like http://goessner.net/articles/wiky/ ?), and then format the hyper links with the correct markup.

Daryl
  • 18,592
  • 9
  • 78
  • 145
  • I am retrieving SMS text contents and image URL from a messaging API, and I want to put all those contents in the activity description with a clickable URL. How can I use HTML webresource in this context ? – Anamika Rani Jul 20 '16 at 20:35
  • If you know nothing about WebResources, here is a start: https://www.youtube.com/watch?v=18EPZinPhLE – Daryl Jul 20 '16 at 21:04
0

None of CRM data types support native full blown html rendering. If you try to use JavaScript to update the value and try to render it as html, it would trigger a save to the database as CRM would see the attribute value as modified.

dynamicallyCRM
  • 2,980
  • 11
  • 16