Is it possible to add multiple image tags in a single table cell?
I want both of these images to show AND be clickable in a single HTML Table cell
<a href="https://www.walshportal.com/walshintegrated/images/logo-white.png" target="_blank" rel="noopener noreferrer"><img height="20px" src=https://www.walshportal.com/walshintegrated/images/logo-white.png></a>
<a href="https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg" target="_blank" rel="noopener noreferrer"><img height="20px" src=https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg></a>
Some cells may have up to 20 images.
Answers
-
Yes. One way to do this is to use create a beast mode and use the CONCAT statement to make it one field:
CONCAT('
<a href="https://www.walshportal.com/walshintegrated/images/logo-white.png" target="_blank" rel="noopener noreferrer"><img height="20px" src=https://www.walshportal.com/walshintegrated/images/logo-white.png></a>
', '
<a href="https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg" target="_blank" rel="noopener noreferrer"><img height="20px" src=https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg></a>
')
The end result will look like this:
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
Thanks Mark. That works.
Do I have the option of showing the images directly from the dataset (without beast mode) in the table card? I.e. my dataset would have fully formed html. When I try it (HTML Table), it just shows the html tags. In a mega table it just shows the second image (only) and when clicked on, opens the first image(!)
0 -
I think you should check your output dataset and verify there isn't additional HTML that is messing things up. I took your HTML in your example and pasted it into a Demo Webform and used the HTML table card and it showed the two images right next to each other in one cell.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
strange, it's the same copy/paste for me and I'm using a webform too
I tried using div tags too
<div><a href="https://www.walshportal.com/walshintegrated/images/logo-white.png" target="_blank" rel="noopener noreferrer"><img height="20px" src=https://www.walshportal.com/walshintegrated/images/logo-white.png></a></div><div><a href="https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg" target="_blank" rel="noopener noreferrer"><img height="20px" src=https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg></a></div>
0 -
That is strange. It shouldn't make a difference, but for consistency's sake, try adding quotes around your src value in your image tags. I noticed you are using quotes on all your other tag values. It's possible the browser you are using isn't rendering it properly. I'm using Chrome and it rendered the images the way you provided it.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
Something with the card maybe (it's an "HTML Table" card)? Data source is a webform
The "Links Test" column comes from your beast mode below:
CONCAT('
<a href="https://www.walshportal.com/walshintegrated/images/logo-white.png" target="_blank" rel="noopener noreferrer"><img height="20px" src="https://www.walshportal.com/walshintegrated/images/logo-white.png"></a>
','
<a href="https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg" target="_blank" rel="noopener noreferrer"><img height="20px" src="https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg"></a>
')
The "Media" column has the same tags in it (without the CONCAT function)
<a href="https://www.walshportal.com/walshintegrated/images/logo-white.png" target="_blank" rel="noopener noreferrer"><img height="20px" src="https://www.walshportal.com/walshintegrated/images/logo-white.png"></a><a href="https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg" target="_blank" rel="noopener noreferrer"><img height="20px" src="https://www.walshportal.com/walshintegrated/images/walsh-qa-flat.jpg"></a>
...yet the card just displays the HTML string in the "Media" column:
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive