Using Domo.Navigate function in place of HTML Links
Wondering if anyone else has had any luck using the domo.navigate() function in Domo and what you did if successful? I was using HTML links but then found out those were not supported once I published my custom card design to Domo. I have included the domo.js library into my script and am trying to find a way to create links using Domo.Navigate() in my code, but I am not having any success as the information on the domo.navigate() function on Domo's site seems pretty limited.
Comments
-
Is anyone able to help out with this request?
0 -
Hello @user008709,
In the navigate function https://developer.domo.com/docs/dev-studio-references/domo-js#domo.navigate
it is designed to navigate to a page within the Domo instance. For example, if you wanted to navigate to someone's profile it would be "domo.navigate('/profile/3234', true);"To add a hyperlink into your data you have to use a href="" link.
Under the known limitations, we mention that links will only work to whitelisted url's: https://developer.domo.com/docs/dev-studio/faq-known-limitations
If you need to add a link to this whitelist you can open a case with the app support team.**Say “Thanks" by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
hi,
I recently ran into the same problem, and figured it out. Hopefully this will help you too:
In index.html:
<a href='https://YOURINSTANCE.domo.com/page/NUMBER/kpis/details/NUMBER' onclick='navigateToThisLink();'>text about the link</a>
In app.js:
function navigateToThisLink()
{ domo.navigate("https://YOURINSTANCE.domo.com/page/NUMBER/kpis/details/NUMBER"); }Technically you could list any text in href="" section, but I think it's best to show the actual link you're going to link to in the javascript code.
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
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 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