Dashboards & Visualizations

Add link in dashboard description

dwahyudi06
Engager

Hi,

 

I want to add external link in my dashboard description.
I saw similar question, but cant find the correct answer https://community.splunk.com/t5/Dashboards-Visualizations/Add-link-to-external-site-in-dashboard-des...

I tried adding <html> tag in the dashboard <description> but I got a warning that <description> is not supposed to have a child tag.

EDIT (so that the accepted answer directly correlates to this question):
I want to add link in dashboard description because I want the link to appear under the title, and above the input. If I just add <html> tag under <panel>, then it will appear after input.

Labels (1)
Tags (3)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

@dwahyudi06 

Yes you can do that if you move the inputs into their own row/panel like this example

<form>
  <label>Example Dashboard</label>
  <description></description>
  <fieldset submitButton="false"></fieldset>
  <row>
    <panel>
      <html>
        <h1 style="color:red">A nice big red header</h1>
        <a href="www.yoursite.com">Link to your site</a>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <input type="text" token="field1">
        <label>Enter search tezt</label>
      </input>
      <input type="dropdown" token="choices">
        <label>Choices</label>
        <choice value="c1">Choice 1</choice>
        <choice value="c2">Choice 2</choice>
      </input>
    </panel>
  </row>
  <row>
    <panel>
      <table>
        <search>
          <query>
  your search here
          </query>
        </search>
      </table>
    </panel>
  </row>
</form>

Hope this helps

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

@dwahyudi06 

You can't put html inside a title element, but you can create a separate html row/panel that sits above the panel you want to have the description and then you can do what you want in that panel, along the lines of

<row>
  <panel>
    <html>
      <a href="www.yoursite.com">Link to your site</a>
    </html>
  <panel>
</row>
<row>
  <panel>
    <table>
      <search>
        <query>
your search here
        </query>
      </search>
    </table>
  <panel>
</row>

 Hope this helps

0 Karma

dwahyudi06
Engager

Hi @bowesmana Thank you. Yes, the html tag works under <panel>.

But I want the text to appear in the top, under title, and before the input.

Perhaps I should post another question about that?

0 Karma

bowesmana
SplunkTrust
SplunkTrust

@dwahyudi06 

Yes you can do that if you move the inputs into their own row/panel like this example

<form>
  <label>Example Dashboard</label>
  <description></description>
  <fieldset submitButton="false"></fieldset>
  <row>
    <panel>
      <html>
        <h1 style="color:red">A nice big red header</h1>
        <a href="www.yoursite.com">Link to your site</a>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <input type="text" token="field1">
        <label>Enter search tezt</label>
      </input>
      <input type="dropdown" token="choices">
        <label>Choices</label>
        <choice value="c1">Choice 1</choice>
        <choice value="c2">Choice 2</choice>
      </input>
    </panel>
  </row>
  <row>
    <panel>
      <table>
        <search>
          <query>
  your search here
          </query>
        </search>
      </table>
    </panel>
  </row>
</form>

Hope this helps

0 Karma
Get Updates on the Splunk Community!

Observability Highlights | November 2022 Newsletter

 November 2022Observability CloudEnd Of Support Extension for SignalFx Smart AgentSplunk is extending the End ...

Avoid Certificate Expiry Issues in Splunk Enterprise with Certificate Assist

This blog post is part 2 of 4 of a series on Splunk Assist. Click the links below to see the other ...

Using Machine Learning for Hunting Security Threats

REGISTER NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more ...