Expand my Community achievements bar.

Hyperlink in a paragraph list

Avatar

Level 4

Just experienced something that seems odd.

I have a plain text field with a fair amount of text. I inserted a hyperlink to a phrase in the text field and the link worked fine. Later I added some formatting to the text field, including using the list function to define some of the items as a bullet list. However, once I did that, the link becomes non-functional.

Am I doing something wrong?

4 Replies

Avatar

Level 10

Well you change the Text value by doing Text1.rawValue = "blabla";

This is normal you loose your link because it replaces the whole value, you would have to keep your xml code inside your value to keep it working...

You need to make a string value that contains xml encoding + your link

Avatar

Level 10

Where you want to change your text value is where you put this code

instead of writting text1.rawValue = "blabla";

you write the above snippet code but use your wording, as you can see linkText is where you put your text that has links... which is inside the <a href="www.google.ca">

You can have everything in only one var, but i seperated it for you to be easier to read