Not without JavaScript. The old in-page drilldown code from 6.0's Dashboard Examples app shows how to determine if a token is set or not and hide certain elements:
require(['jquery','underscore','splunkjs/mvc','util/console','splunkjs/mvc/simplexml/ready!'], function($, _, mvc, console){
// Get a reference to the dashboard panels
var master_view = mvc.Components.get('master');
var detail_view = mvc.Components.get('detail');
var unsubmitted_tokens = mvc.Components.get('default');
var submitted_tokens = mvc.Components.get('submitted');
var url_tokens = mvc.Components.get('url');
if(!submitted_tokens.has('sourcetype')) {
// if there's no value for the $sourcetype$ token yet, hide the dashboard panel of the detail view
detail_view.$el.parents('.dashboard-panel').hide();
}
submitted_tokens.on('change:sourcetype', function(){
// When the token changes...
if(!submitted_tokens.get('sourcetype')) {
// ... hide the panel if the token is not defined
detail_view.$el.parents('.dashboard-panel').hide();
} else {
// ... show the panel if the token has a value
detail_view.$el.parents('.dashboard-panel').show();
}
});
master_view.on('click', function(e) {
e.preventDefault();
var value = e.data['row.sourcetype'];
// Submit the value for the sourcetype field
unsubmitted_tokens.set('form.sourcetype', value);
submitted_tokens.set(unsubmitted_tokens.toJSON());
url_tokens.saveOnlyWithPrefix('form\\.', unsubmitted_tokens.toJSON(), {
replaceState: false
});
});
});
... View more