Articles in this section
Category / Section

How to Creat Dynamic Hyperlinks in Text Controls

Published:

Creating dynamic hyperlinks in text controls is a common requirement in many applications. This can be achieved by using label parameters directly in the Text Control. However, it’s important to note that these cannot be used as a href value directly. The label parameters values are updated based on a common class which is appended in the HTML page.

Here are the steps to load hyperlinks in a text widget with a dynamic parameter:

Step 1: Create an Expression Column

First, create an expression column with the required HTML tags. For example, you can name it as AnchorTag.

The expression could look something like this:

CONCAT('<a href="https://www.google.com/search?q=', [ShipCountry] ,'">',[ShipCountry] ,'</a>') 

Step 2: Use the Expression Column as Label Parameters

Next, use this expression column as label parameters in the text widget.

image.png

Step 3: Bind the Dynamic Value

Bind the dynamic value that you want to change dynamically in some widget. For instance, you can use a combobox and bind the ShipCountry column.
image.png

Step 4: Update Hyperlinks in Text Widget

Now, changing values in the Combobox will update its respective hyperlinks in the Text widget.

image.png

By following these steps, you can create dynamic hyperlinks in text controls.

For more information, please refer to the official documentation: Configuring Label Parameters

References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
RM
Written by Reethika Moovendhan
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied