How do we hyperlink a column in CloudTables?

How do we hyperlink a column in CloudTables?

enjoypbenjoypb Posts: 31Questions: 12Answers: 0

I've tried adding html code to create a 'Link' hyperlink so the user only needs to click on the 'Link' vs. a very long url.

I've added the <a href="url.com/here">Link</a> and selected both HTML and HTML Code options in the Text Options but, am not having any luck.

When I visit the final page where the table is embedded I see the same code I put in the field '<a href="url.com/here">Link</a>'

Any direction would be appreciated!

Answers

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    Hi,

    Yes, to prevent XSS attacks from user input data CloudTables automatically encodes HTML entities. So for something like a link you have a few options:

    1. Use the "HTML" input type for the data point, which will show a WYSIWYG input when editing data and includes options for creating links.
    2. Use Markdown input which includes link syntax.
    3. Use a computed value which will let you take the URL from a data point and then wrap it in HTML that you specify. You can optionally use a second data point as the text to show in the link or just specify static text such as "Link" or "Open".

    This is an example of how such a computed value might be setup:

    Regards,
    Allan

Sign In or Register to comment.