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
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 665 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 827 Beast Mode
- Visualize
- 2.6K Charting
- 90 App Studio
- 46 Variables
- Automate
- 198 Apps
- 488 APIs & Domo Developer
- 97 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 145 Governance & Security
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive