How to add color to hyperlink in beast mode?
Comments
-
Commenting for visibility, also interested -- right now, the fact that it defaults to the darker blue has led to some issues in how I format surrounding cards and colors, so modifying this would be super helpfyl.
0 -
Try using this beast mode format:
CONCAT('<div><a href="https://..."','"target="_blank"><font color="black">',`id`,'</a></div>')
You should be able to type in other colors where it says "black" or you can use Hex values like this which would display green:
CONCAT('<div><a href="https://..."','"target="_blank"><font color=#00c200>',`id`,'</a></div>')
1 -
@DDalt Thank you!
Could we do something similar in a beast mode where we use html to set a color for the background?
We use the following beast mode to highlight the background of a cell to be pale green. The text within the cell, however, looks similar to a hyperlink (same blue-ush font).
In this case, where would we add the "font color = black" html part? Appreciate any help, thanks!
CONCAT('<div style="background-color:#98FB98; width: 100%; height:100%; margin:-20px; padding:20px"><a href="#">', DATE_FORMAT(`Actual First Units`, '%m/%d/%y'), '</a></div>')
0 -
I was able to display black text with your green background using this beast mode (note: I used a column called `Completion Date` so you will want to replace that with your `Actual First Units` field)
CONCAT('<font color="black"> <div style="background-color:#98FB98; width: 100%; height:100%; margin:-20px; padding:20px">', DATE_FORMAT(`Completion Date`, '%m/%d/%y'), '</div>')
0 -
Bummer! What specifically did not work?
This is a "live" beast mode that you should be able to drop into any data set to link to Google as a test:
CONCAT('<div><a href="https://www.google.com/"','"target="_blank"><font color=#00c200>','Link to Google','</a></div>')
If you want only one row to show up, you can use:
MAX(CONCAT('<div><a href="https://www.google.com/"','"target="_blank"><font color=#00c200>','Link to Google','</a></div>'))
If you use that exact beast mode, place it as a column in a Table card, and save and close can you 1) see "Link to Google" in Green and 2) click the link to go to the main Google search engine page?
1
Categories
- 7.7K All Categories
- 3 Connect
- 919 Connectors
- 244 Workbench
- 477 Transform
- 1.8K Magic ETL
- 60 SQL DataFlows
- 446 Datasets
- 37 Visualize
- 198 Beast Mode
- 2K Charting
- 8 Variables
- 1 Automate
- 348 APIs & Domo Developer
- 82 Apps
- Workflows
- 14 Predict
- 3 Jupyter Workspaces
- 11 R & Python Tiles
- 241 Distribute
- 59 Domo Everywhere
- 241 Scheduled Reports
- 15 Manage
- 36 Governance & Security
- 27 Product Ideas
- 1.1K Ideas Exchange
- Community Forums
- 14 Getting Started
- 1 Community Member Introductions
- 49 Community News
- 18 Event Recordings
- 579 日本支部