This topic is locked

Add hyperlink to text field

3/11/2008 2:34:05 PM
ASPRunnerPro General questions
S
semleon author

Hi all.

I have a field that is free form text. If someone puts a url in there (i.e. http://somewhere)) I want that to turn in to a hyperlink. I cant make the field a "Hyperlink" type because usualy there is both text and a URL in that field.
I've tried to add the <a href=... when editing but that didn't work either
Sample of data in field: All documentation for this system can be found at http://intranetsite
Just want to find a way for the application to return any HTTP:// section of the text as a hyperlink.
Possable?

Sergey Kornilov admin 3/11/2008

Set View as type of this field to HTML.

S
semleon author 3/11/2008

Sorry, I forgot to mention that I tried that and still doesn't work. when there is an http:// entry, it's just showing up as text with no automatic hyperlinking. This happens in both the LIST view and the VIEW view.

I'm using 5.2 (Build 391)
I've uploaded project to Demo server. (kleonar@frk.com)

Login is admin

password admin12
see "eESM Problem & Change Management" under the Application List table and note the "Notes" section

J
Jane 3/12/2008

Hi,
I've checked your files.

Notes field is setup as HTML, not as Hyperlink on the "View as" settings dialog.

S
semleon author 3/12/2008

I know.....If you read the initial problem, you will see that this field can not be a "Hyperlink" type because at times there will be more in that field than just a hyperlink. The example i gave you just happens to only include a hyperlink. This is why we make the field HTML. Besides, according to the first reponse even that should work, but it didn't

Sergey Kornilov admin 3/12/2008

semleon,
there is no such thing as automatic hyperlinking.
Set "View as" type to "HTML" and create hyperlinks manually i.e.

<a href="http://www.cnn.com">CNN</a>;


You can also turn on Rich Text Editor to make editing easier.

S
semleon author 3/12/2008

Thank you.