Domo APP Button Question
I'm creating a popup button to open a card in the Domo app. Is there a way to adjust the display size of the card so it opens in half-screen instead of full-screen?
Answers
-
Domo does not provide built-in functionality to directly set a specific size for the popup window, such as half-screen. But you can try to use a workaround by implementing a custom html button.
<button onclick="openCard()">Open Card</button>
<script>
function openCard() {
var url = "https://your-domo-instance.com/cards/card-id";
var width = window.innerWidth / 2;
var height = window.innerHeight;
var left = (window.innerWidth - width) / 2;
var top = 0; // Start at the top of the window
window.open(url, 'Domo Card', `width=${width},height=${height},top=${top},left=${left}`);
}
</script>** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
0
-
0
-
Hey, I have created a html brick, but when I clicked the button nothing happened. When I copy the code to the html compiler online, it works, but not in domo. Any idea why?
0 -
I’m currently unable to test directly in Domo. I initially assumed you were referring to a programmed button that opens a card, rather than creating an image or a visual element with an action attached.
The button should function according to the card's existing settings for full-screen display. If you are implementing this through something like a blank brick card button, the code I provided should work effectively.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
There may be limitations to what it can do inside Domo. Here's a simplified version to check if it fires properly. If its a brick, you have to put the javascript code without tags in javascript, and the button in the html section.
<button onclick="openCard()">Open Card</button>
<script>
function openCard() {
var url = "https://your-domo-instance.com/cards/card-id"; // Replace with your actual card URL
window.open(url, '_blank'); // This opens the card in a new tab
}
</script>** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive