Can I create a Hyperlink in a Rebus widget?

How to create a hyperlink in Rebus:

  1. From the widget design chart select columnDefs :
    image

  2. Add a new property ( cellRendererWidgetFunction ) to the field that you want to display as the link:
    image
    image

  3. From the drop-down, select hyperlinkCell (since you already have https:// as part of the cell text):
    image

  4. Click Save to see the changes:
    image

  5. If you do not have the https:// as part of the cell text, please use hyperlinkCellWithoutSecureProtocol function: the https:// would be automatically prefixed to the cell text prior to opening the link.

1 Like

Question related to hyperlinks-
I’m wondering if it is possible to make a pro number a hyperlink that pulls up the appropriate tracking website depending on the carrier. Has anyone done this? I’m thinking you would need a carrier table with the urls linked somehow?

Hi there,

You can use a calculated field to change the value of a cell according to the data that is in it. If CARRIER is an available field in your widget, create a calculated field to change the value of the cell to the desired website based on the carrier’s value.

The function for your field would look like this:
condition(equals(CARRIER_FIELD, “carrier1”)(“www.firstsitecom”)

Rebus will then display the pro code and a new column with the website for that carrier, that you can display following the information above.

If you know exactly where your tracking number will appear in the carrier’s URL, you can also concatenate the value of the pro number and the website so that clicking on the number brings you directly to the tracking information for that shipment.

Your function would then look like this:
condition(equals(CARRIER_FIELD,“carrier1”),concatenate("first part of the URL”,PRO_NUMBER,“second part of the URL”), …)

Rebus will display the entire URL for the carrier containing the tracking number.

Let us know if it helped!

1 Like