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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...